CC-84: Smart Playlists

- fixed the issue where block length wasn't updated on spl section
This commit is contained in:
James 2012-07-26 10:49:23 -04:00
parent bef9ba1eea
commit 9bd823ee2c
3 changed files with 8 additions and 8 deletions

View file

@ -903,11 +903,11 @@ class Application_Model_Block
foreach ($data['criteria'] as $key=>$d){
$error = array();
$column = CcFilesPeer::getTableMap()->getColumnByPhpName(self::$criteria2PeerMap[$d['sp_criteria_field']]);
// check for not selected select box
if ($d['sp_criteria_field'] == "0" || $d['sp_criteria_modifier'] == "0"){
$error[] = "You must select Criteria and Modifier";
} else {
} else {
$column = CcFilesPeer::getTableMap()->getColumnByPhpName(self::$criteria2PeerMap[$d['sp_criteria_field']]);
// validation on type of column
if ($d['sp_criteria_field'] == 'length') {
if (!preg_match("/(\d{2}):(\d{2}):(\d{2})/", $d['sp_criteria_value'])) {