CC-1665: Scheduled stream rebroadcasting and recording
-fixed clicking save multiple times creates multiple smart playlists
This commit is contained in:
parent
12ddf30049
commit
e511f7cd37
3 changed files with 22 additions and 6 deletions
|
@ -199,7 +199,13 @@ class Application_Model_Webstream{
|
|||
{
|
||||
$userInfo = Zend_Auth::getInstance()->getStorage()->read();
|
||||
|
||||
$webstream = new CcWebstream();
|
||||
$id = $parameters['id'];
|
||||
if ($id != -1) {
|
||||
$webstream = CcWebstreamQuery::create()->findPK($id);
|
||||
} else {
|
||||
$webstream = new CcWebstream();
|
||||
}
|
||||
|
||||
$webstream->setDbName($parameters["name"]);
|
||||
$webstream->setDbDescription($parameters["description"]);
|
||||
$webstream->setDbUrl($parameters["url"]);
|
||||
|
@ -214,5 +220,7 @@ class Application_Model_Webstream{
|
|||
|
||||
$webstream->setDbMime($mime);
|
||||
$webstream->save();
|
||||
|
||||
return $webstream->getDbId();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue