Hid type button in library if null, added "select a type" in track edit
This commit is contained in:
parent
5691c69102
commit
707e4f447a
2 changed files with 11 additions and 2 deletions
|
@ -94,6 +94,7 @@ class Application_Form_EditAudioMD extends Zend_Form
|
|||
// Add track type dropdown
|
||||
$track_type_options = array();
|
||||
$track_types = Application_Model_Tracktype::getTracktypes();
|
||||
$track_type_options[""] = _('Select a Type');
|
||||
foreach ($track_types as $key => $tt) {
|
||||
$track_type_options[$tt['code']] = $tt['type_name'];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue