SAAS-1088 - move 'All My Shows' checkbox to dropdown instead

This commit is contained in:
Duncan Sommerville 2015-09-30 11:38:33 -04:00
parent 258500f650
commit 2ee7e4bf71
3 changed files with 11 additions and 8 deletions

View file

@ -85,7 +85,11 @@ class Application_Form_ShowBuilder extends Zend_Form_SubForm
private function getShowNames()
{
$showNames = array("0" => _("Filter by Show"));
$user = Application_Model_User::getCurrentUser();
$showNames = array("0" => _("Filter by Show"));
if ($user->getType() === 'H') {
$showNames["-1"] = _("My Shows");
}
$shows = CcShowQuery::create()
->setFormatter(ModelCriteria::FORMAT_ON_DEMAND)