Closed Bug 375099 Opened 17 years ago Closed 17 years ago

minVersion altered during additem

Categories

(addons.mozilla.org Graveyard :: Developer Pages, defect)

defect
Not set
critical

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: fligtar, Assigned: fligtar)

References

Details

A minVersion of 2.0 in install.rdf is changed to 2.0b1 during additem process.
find(array('application_id' => $matchingApp['Application']['id'],
           'version' => "{$appVal['minVersion']}"), null, null, -1);

was coming out as:

SELECT `Appversion`.`id`, `Appversion`.`application_id`, `Appversion`.`version`, `Appversion`.`created`, `Appversion`.`modified` FROM `appversions` AS `Appversion` WHERE (`application_id` = 1) AND (`version` = 2.0) LIMIT 1

which returned the closest thing it could find since 2.0 wasn't in quotes.

Changed it to not use Cake so much and it works now:
$matchingMinVers = $this->controller->Appversion->find("application_id={$matchingApp['Application']['id']} AND version='{$appVal['minVersion']}'", null, null, -1);
Committed.
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.