From 061dec14aada14099c4e70144cfef957a5295ef9 Mon Sep 17 00:00:00 2001 From: james Date: Mon, 13 Jun 2011 14:20:57 -0400 Subject: [PATCH] CC-2289:Differentiate between time and duration - modified createNewFormSections function so it populate form with defalt value --- airtime_mvc/application/models/Schedule.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/airtime_mvc/application/models/Schedule.php b/airtime_mvc/application/models/Schedule.php index 231d35e86..5676da420 100644 --- a/airtime_mvc/application/models/Schedule.php +++ b/airtime_mvc/application/models/Schedule.php @@ -765,6 +765,13 @@ class Schedule { $p_view->addNewShow = true; $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"))); } }