CC-2326 Can't edit a show more than once (End Date problems)
keep adding the 1 day interval here
This commit is contained in:
parent
8d59c18bef
commit
81ee30105d
|
@ -626,16 +626,16 @@ class Show {
|
|||
$endDate = NULL;
|
||||
}
|
||||
else if ($data['add_show_repeats']) {
|
||||
//$sql = "SELECT date '{$data['add_show_end_date']}' + INTERVAL '1 day' ";
|
||||
//$r = $con->query($sql);
|
||||
//$endDate = $r->fetchColumn(0);
|
||||
$endDate = $data['add_show_end_date'];
|
||||
$sql = "SELECT date '{$data['add_show_end_date']}' + INTERVAL '1 day' ";
|
||||
$r = $con->query($sql);
|
||||
$endDate = $r->fetchColumn(0);
|
||||
//$endDate = $data['add_show_end_date'];
|
||||
}
|
||||
else {
|
||||
//$sql = "SELECT date '{$data['add_show_start_date']}' + INTERVAL '1 day' ";
|
||||
//$r = $con->query($sql);
|
||||
//$endDate = $r->fetchColumn(0);
|
||||
$endDate = $data['add_show_start_date'];
|
||||
$sql = "SELECT date '{$data['add_show_start_date']}' + INTERVAL '1 day' ";
|
||||
$r = $con->query($sql);
|
||||
$endDate = $r->fetchColumn(0);
|
||||
//$endDate = $data['add_show_start_date'];
|
||||
}
|
||||
|
||||
//only want the day of the week from the start date.
|
||||
|
|
Loading…
Reference in New Issue