Remove unnecessary fields from bulk get, add explicit casting back to podcast item array for testing

This commit is contained in:
Duncan Sommerville 2015-09-22 20:24:53 -04:00
parent 55d5fc62a2
commit 827a83392f
2 changed files with 9 additions and 4 deletions

View file

@ -177,7 +177,7 @@ class Rest_PodcastController extends Zend_Rest_Controller
case "DELETE":
foreach($ids as $id) {
Podcast::deleteById($id);
$responseBody = "Success"; // TODO
$responseBody = "Success"; // TODO: make this more descriptive
}
break;
case "GET":
@ -186,9 +186,6 @@ class Rest_PodcastController extends Zend_Rest_Controller
$responseBody[] = array(
"podcast"=>json_encode($podcast),
"html"=>$this->view->render($path),
"type"=>"podcast", // TODO: get rid of these extraneous fields
"id"=>$podcast["id"]
// "id"=>$podcast->getDbId()
);
}
break;