From 85ab11dc5680c552542f2442fdf80754f191574d Mon Sep 17 00:00:00 2001 From: Naomi Date: Thu, 10 Feb 2011 19:36:39 -0500 Subject: [PATCH] CC-1897 defaults to day of the week of start date. --- application/models/Shows.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/application/models/Shows.php b/application/models/Shows.php index 20a3a122b..149a558d6 100644 --- a/application/models/Shows.php +++ b/application/models/Shows.php @@ -80,7 +80,10 @@ class Show { //only want the day of the week from the start date. if(!$data['add_show_repeats']) { $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. if($data['add_show_repeats']) { @@ -89,7 +92,7 @@ class Show { else { $repeat_type = -1; } - + $show = new CcShow(); $show->setDbName($data['add_show_name']); $show->setDbDescription($data['add_show_description']);