From 93da6ed5325dcd82424f34752f93e6343c88b07a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mauro=20Filipe=20Martins=20Ferr=C3=A3o?= Date: Fri, 6 Jan 2017 16:55:38 +0000 Subject: [PATCH] Time picker in display profiles writes 0 instead of 00:00 to the hidden field which breaks Display edit form xibosignage/xibo#994 --- lib/Entity/DisplayProfile.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/Entity/DisplayProfile.php b/lib/Entity/DisplayProfile.php index 6fe7b327da..4a5fa1bcbe 100644 --- a/lib/Entity/DisplayProfile.php +++ b/lib/Entity/DisplayProfile.php @@ -758,7 +758,7 @@ private function loadFromFile() 'title' => __('Download Window Start Time'), 'type' => 'string', 'fieldType' => 'timePicker', - 'default' => 0, + 'default' => '00:00', 'helpText' => __('The start of the time window to connect to the CMS and download updates.'), 'enabled' => true, 'groupClass' => NULL @@ -769,7 +769,7 @@ private function loadFromFile() 'title' => __('Download Window End Time'), 'type' => 'string', 'fieldType' => 'timePicker', - 'default' => 0, + 'default' => '00:00', 'helpText' => __('The end of the time window to connect to the CMS and download updates.'), 'enabled' => true, 'groupClass' => NULL @@ -995,7 +995,7 @@ private function loadFromFile() 'title' => __('Update Window Start Time'), 'type' => 'string', 'fieldType' => 'timePicker', - 'default' => 0, + 'default' => '00:00', 'helpText' => __('The start of the time window to install application updates.'), 'enabled' => true, 'groupClass' => NULL @@ -1006,7 +1006,7 @@ private function loadFromFile() 'title' => __('Update Window End Time'), 'type' => 'string', 'fieldType' => 'timePicker', - 'default' => 0, + 'default' => '00:00', 'helpText' => __('The end of the time window to install application updates.'), 'enabled' => true, 'groupClass' => NULL