CC-2289:Differentiate between time and duration
- modified createNewFormSections function so it populate form with defalt value
This commit is contained in:
parent
7cc1f5c2e7
commit
061dec14aa
1 changed files with 7 additions and 0 deletions
|
@ -765,6 +765,13 @@ class Schedule {
|
||||||
$p_view->addNewShow = true;
|
$p_view->addNewShow = true;
|
||||||
|
|
||||||
$formWhat->populate(array('add_show_id' => '-1'));
|
$formWhat->populate(array('add_show_id' => '-1'));
|
||||||
|
$formWhen->populate(array('add_show_start_date' => date("Y-m-d"),
|
||||||
|
'add_show_start_time' => '00:00',
|
||||||
|
'add_show_end_date_no_repeate' => date("Y-m-d"),
|
||||||
|
'add_show_end_time' => '01:00',
|
||||||
|
'add_show_duration' => '1h'));
|
||||||
|
|
||||||
|
$formRepeats->populate(array('add_show_end_date' => date("Y-m-d")));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue