CC-4215: Smart Playlist: Exception happens when generate with criteria Length is 2012-08-10 14:00:00
- fixed
This commit is contained in:
parent
daa7e8d263
commit
1146e1f269
1 changed files with 1 additions and 1 deletions
|
@ -454,7 +454,7 @@ class Application_Form_SmartBlockCriteria extends Zend_Form_SubForm
|
||||||
$column = CcFilesPeer::getTableMap()->getColumnByPhpName($criteria2PeerMap[$d['sp_criteria_field']]);
|
$column = CcFilesPeer::getTableMap()->getColumnByPhpName($criteria2PeerMap[$d['sp_criteria_field']]);
|
||||||
// validation on type of column
|
// validation on type of column
|
||||||
if ($d['sp_criteria_field'] == 'length') {
|
if ($d['sp_criteria_field'] == 'length') {
|
||||||
if (!preg_match("/(\d{2}):(\d{2}):(\d{2})/", $d['sp_criteria_value'])) {
|
if (!preg_match("/^(\d{2}):(\d{2}):(\d{2})/", $d['sp_criteria_value'])) {
|
||||||
$element->addError("'Length' should be in '00:00:00' format");
|
$element->addError("'Length' should be in '00:00:00' format");
|
||||||
$isValid = false;
|
$isValid = false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue