Properly handle queued apps with more than one version

This commit is contained in:
Alexander Nicolaysen Sørnes
2009-06-28 14:37:38 +02:00
parent a3031b6e21
commit 9f52eca642
2 changed files with 15 additions and 0 deletions

View File

@@ -247,6 +247,9 @@ class version {
}
}
if($this->objectGetState() != $oVersion->objectGetState())
query_parameters("UPDATE appVersion SET state = '?' WHERE versionId = '?'", $this->objectGetState(), $this->objectGetId());
if($sWhatChanged and !$bSilent)
$this->SendNotificationMail("edit",$sWhatChanged);
return true;