SAAS-580 - Fixed routing issue causing show art to not upload; changed ShowController to be more RESTful

This commit is contained in:
Duncan Sommerville 2015-02-04 15:09:27 -05:00
parent 7eef9d941e
commit 826ae17552
8 changed files with 300 additions and 332 deletions

View file

@ -209,7 +209,7 @@ class Application_Service_ShowService
// Only delete the previous logo if a new one is being uploaded
if (array_key_exists("add_show_logo_name", $showData) && $showData["add_show_logo_name"] !== "") {
if (!Rest_ShowController::deleteShowImagesFromStor($showId)) {
if (!Rest_ShowImageController::deleteShowImagesFromStor($showId)) {
throw new Exception("Error deleting show images");
}
}
@ -267,7 +267,7 @@ class Application_Service_ShowService
Logging::info($e->getMessage());
}
// Added to pass along to the RESTful ShowController
// Added to pass along to the RESTful ShowImageController
return $this->ccShow->getDbId();
}
@ -763,7 +763,7 @@ SQL;
// Delete show images
$showId = $ccShowInstance->getDbShowId();
if (!Rest_ShowController::deleteShowImagesFromStor($showId)) {
if (!Rest_ShowImageController::deleteShowImagesFromStor($showId)) {
throw new Exception("Error deleting show images");
}