CC-3596: Playlist->Library->Edit Metadata: Throw exception after
inputing string in "BPM" - added validator on the form
This commit is contained in:
parent
332c1d91b5
commit
d035681f35
|
@ -87,7 +87,8 @@ class Application_Form_EditAudioMD extends Zend_Form
|
||||||
$this->addElement('text', 'bpm', array(
|
$this->addElement('text', 'bpm', array(
|
||||||
'label' => 'BPM:',
|
'label' => 'BPM:',
|
||||||
'class' => 'input_text',
|
'class' => 'input_text',
|
||||||
'filters' => array('StringTrim')
|
'filters' => array('StringTrim'),
|
||||||
|
'validators' => array(array('StringLength', false, array(0, 8)))
|
||||||
));
|
));
|
||||||
|
|
||||||
// Add copyright field
|
// Add copyright field
|
||||||
|
|
Loading…
Reference in New Issue