From 11284d0d4181b09359618c301475005dd5292ac9 Mon Sep 17 00:00:00 2001 From: drigato Date: Mon, 6 Jan 2014 13:51:06 -0500 Subject: [PATCH] CC-5660: Unable to create shows with a rebroadcast Two variables that are needed for the rebroadcast validation were deleted before the 2.5.1 release. Just had to add them back in. --- airtime_mvc/application/forms/AddShowWhen.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/airtime_mvc/application/forms/AddShowWhen.php b/airtime_mvc/application/forms/AddShowWhen.php index 91259400a..ff92d7c60 100644 --- a/airtime_mvc/application/forms/AddShowWhen.php +++ b/airtime_mvc/application/forms/AddShowWhen.php @@ -162,6 +162,13 @@ class Application_Form_AddShowWhen extends Zend_Form_SubForm } + /* We need to know the show duration broken down into hours and minutes + * They are used for checking overlapping shows and for validating + * rebroadcast instances + */ + $hours = $duration->format("%h"); + $minutes = $duration->format("%m"); + /* Check if show is overlapping * We will only do this check if the show is valid * upto this point