deleting repeating shows only deletes shows in the future, but having problems with full calendar caching results or something so display on calendar can be incorrect.

This commit is contained in:
Naomi 2011-01-19 15:21:11 -05:00
parent 84111d23a3
commit e27c42fef6
8 changed files with 192 additions and 125 deletions

View file

@ -131,11 +131,13 @@ class ScheduleController extends Zend_Controller_Action
public function deleteShowAction()
{
$showId = $this->_getParam('showId');
$date = $this->_getParam('date');
$userInfo = Zend_Auth::getInstance()->getStorage()->read();
$show = new Show(new User($userInfo->id, $userInfo->type));
$show->deleteShow($showId);
$user = new User($userInfo->id, $userInfo->type);
$show = new Show($user, $showId);
$show->deleteShow($date);
}
public function makeContextMenuAction()