CC-84: Smart Playlists
- fixed the issue where block length wasn't updated on spl section
This commit is contained in:
parent
bef9ba1eea
commit
9bd823ee2c
3 changed files with 8 additions and 8 deletions
|
@ -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'])) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue