From: Ben Klang Date: Mon, 29 Mar 2010 20:54:10 +0000 (-0400) Subject: Shout: fix selecting recording when adding menu X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=5b9949ba185dbb730b0db6b8faf8aa88eb94bdb1;p=horde.git Shout: fix selecting recording when adding menu --- diff --git a/shout/lib/Forms/MenuForm.php b/shout/lib/Forms/MenuForm.php index 63a4e6bb6..2bb810f9d 100644 --- a/shout/lib/Forms/MenuForm.php +++ b/shout/lib/Forms/MenuForm.php @@ -35,7 +35,15 @@ class MenuForm extends Horde_Form { } $this->addVariable(_("Menu Name"), 'name', 'text', true); $this->addVariable(_("Description"), 'description', 'text', false); - $this->addVariable(_("Recording"), 'recording_id', 'enum', true); + + $shout = $GLOBALS['registry']->getApiInstance('shout', 'application'); + $recordings = $shout->storage->getRecordings($curaccount); + $list = array(); + foreach ($recordings as $id => $info) { + $list[$id] = $info['filename']; + } + $this->addVariable(_("Recording"), 'recording_id', 'enum', true, false, + null, array($list)); return true; }