CC-3731: Can add a show of zero length
- fixed - extra fix: Changed all the duration format so it's consistent
This commit is contained in:
parent
88100e79ad
commit
0d5f581e35
3 changed files with 5 additions and 5 deletions
|
@ -618,7 +618,7 @@ class Application_Model_Schedule {
|
|||
'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'));
|
||||
'add_show_duration' => '01h 00m'));
|
||||
|
||||
$formRepeats->populate(array('add_show_end_date' => date("Y-m-d")));
|
||||
|
||||
|
|
|
@ -765,7 +765,7 @@ class Application_Model_Show {
|
|||
return $showDay->getDbDuration();
|
||||
}else{
|
||||
$info = explode(':',$showDay->getDbDuration());
|
||||
return ($info[0] != 0 ? intval($info[0]).'h'.' ' : '').($info[1] != 0 ? intval($info[1]).'m' : '');
|
||||
return str_pad(intval($info[0]),2,'0',STR_PAD_LEFT).'h '.str_pad(intval($info[1]),2,'0',STR_PAD_LEFT).'m';
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue