From c08994a60bf7ba4502849b9af7ffd04159b422a3 Mon Sep 17 00:00:00 2001 From: Duncan Sommerville Date: Tue, 29 Sep 2015 16:34:23 -0400 Subject: [PATCH] Fix bug where user could open mutiple copies of same webstream tab --- airtime_mvc/application/controllers/WebstreamController.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/airtime_mvc/application/controllers/WebstreamController.php b/airtime_mvc/application/controllers/WebstreamController.php index 41847c52d..6e0b8cf24 100644 --- a/airtime_mvc/application/controllers/WebstreamController.php +++ b/airtime_mvc/application/controllers/WebstreamController.php @@ -63,12 +63,16 @@ class WebstreamController extends Zend_Controller_Action if (!$isAdminOrPM && $webstream->getDbCreatorId() != $user->getId()) { $this->view->objType = "webstream"; + $this->view->type = "webstream"; $this->view->obj = $obj; + $this->view->id = $id; $this->view->html = $this->view->render('playlist/permission-denied.phtml'); return; } $this->view->obj = $obj; + $this->view->type = "webstream"; + $this->view->id = $id; $this->view->action = "edit"; $this->view->html = $this->view->render('webstream/webstream.phtml'); }