Reformatted schedule
This commit is contained in:
parent
dd68f6d945
commit
806fd83ccc
1 changed files with 10 additions and 7 deletions
|
@ -942,7 +942,8 @@ SQL;
|
||||||
* Another clean-up is to move all the form manipulation to the proper form class.....
|
* Another clean-up is to move all the form manipulation to the proper form class.....
|
||||||
* -Martin
|
* -Martin
|
||||||
*/
|
*/
|
||||||
public static function addUpdateShow($data, $controller, $validateStartDate, $originalStartDate=null, $update=false, $instanceId=null)
|
public static function addUpdateShow($data, $controller, $validateStartDate,
|
||||||
|
$originalStartDate=null, $update=false, $instanceId=null)
|
||||||
{
|
{
|
||||||
$userInfo = Zend_Auth::getInstance()->getStorage()->read();
|
$userInfo = Zend_Auth::getInstance()->getStorage()->read();
|
||||||
$user = new Application_Model_User($userInfo->id);
|
$user = new Application_Model_User($userInfo->id);
|
||||||
|
@ -1076,6 +1077,7 @@ SQL;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if ($isAdminOrPM) {
|
if ($isAdminOrPM) {
|
||||||
|
Logging::info( $data );
|
||||||
Application_Model_Show::create($data);
|
Application_Model_Show::create($data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1086,12 +1088,12 @@ SQL;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$controller->view->what = $formWhat;
|
$controller->view->what = $formWhat;
|
||||||
$controller->view->when = $formWhen;
|
$controller->view->when = $formWhen;
|
||||||
$controller->view->repeats = $formRepeats;
|
$controller->view->repeats = $formRepeats;
|
||||||
$controller->view->who = $formWho;
|
$controller->view->who = $formWho;
|
||||||
$controller->view->style = $formStyle;
|
$controller->view->style = $formStyle;
|
||||||
$controller->view->live = $formLive;
|
$controller->view->live = $formLive;
|
||||||
|
|
||||||
if (!$isSaas) {
|
if (!$isSaas) {
|
||||||
$controller->view->rr = $formRecord;
|
$controller->view->rr = $formRecord;
|
||||||
|
@ -1104,7 +1106,8 @@ SQL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function checkOverlappingShows($show_start, $show_end, $update=false, $instanceId=null)
|
public static function checkOverlappingShows($show_start, $show_end,
|
||||||
|
$update=false, $instanceId=null)
|
||||||
{
|
{
|
||||||
$overlapping = false;
|
$overlapping = false;
|
||||||
/* If a show is being edited, exclude it from the query
|
/* If a show is being edited, exclude it from the query
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue