CC-2626: long numbers after the dot should be truncated
- fixed
This commit is contained in:
parent
dfb7ca69f6
commit
5124fa67d3
1 changed files with 5 additions and 0 deletions
|
@ -285,6 +285,11 @@ class ScheduleController extends Zend_Controller_Action
|
||||||
|
|
||||||
$show = new ShowInstance($this->sched_sess->showInstanceId);
|
$show = new ShowInstance($this->sched_sess->showInstanceId);
|
||||||
$playlists = $show->searchPlaylistsForShow($post);
|
$playlists = $show->searchPlaylistsForShow($post);
|
||||||
|
foreach( $playlists['aaData'] as &$data){
|
||||||
|
// calling two functions to format time to 1 decimal place
|
||||||
|
$sec = Playlist::playlistTimeToSeconds($data[4]);
|
||||||
|
$data[4] = Playlist::secondsToPlaylistTime($sec);
|
||||||
|
}
|
||||||
|
|
||||||
//for datatables
|
//for datatables
|
||||||
die(json_encode($playlists));
|
die(json_encode($playlists));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue