CC-1897 defaults to day of the week of start date.

This commit is contained in:
Naomi 2011-02-10 19:36:39 -05:00
parent f3efc9edaa
commit 85ab11dc56

View file

@ -80,7 +80,10 @@ class Show {
//only want the day of the week from the start date. //only want the day of the week from the start date.
if(!$data['add_show_repeats']) { if(!$data['add_show_repeats']) {
$data['add_show_day_check'] = array($startDow); $data['add_show_day_check'] = array($startDow);
} }
else if($data['add_show_repeats'] && $data['add_show_day_check'] == "") {
$data['add_show_day_check'] = array($startDow);
}
//find repeat type or set to a non repeating show. //find repeat type or set to a non repeating show.
if($data['add_show_repeats']) { if($data['add_show_repeats']) {
@ -89,7 +92,7 @@ class Show {
else { else {
$repeat_type = -1; $repeat_type = -1;
} }
$show = new CcShow(); $show = new CcShow();
$show->setDbName($data['add_show_name']); $show->setDbName($data['add_show_name']);
$show->setDbDescription($data['add_show_description']); $show->setDbDescription($data['add_show_description']);