CC-4220: Smart Playlists: Change indexing of criteria elements
-changed indexing on UI
This commit is contained in:
parent
0a05db1230
commit
c62d89d5da
4 changed files with 84 additions and 136 deletions
|
@ -935,6 +935,7 @@ EOT;
|
|||
public function saveSmartBlockCriteria($p_criteria)
|
||||
{
|
||||
$data = $this->organizeSmartPlyalistCriteria($p_criteria);
|
||||
|
||||
// things we need to check
|
||||
// 1. limit value shouldn't be empty and has upperbound of 24 hrs
|
||||
// 2. sp_criteria or sp_criteria_modifier shouldn't be 0
|
||||
|
@ -1312,10 +1313,9 @@ EOT;
|
|||
*/
|
||||
$fieldName = substr($ele['name'], 0, $index);
|
||||
|
||||
/* Get criteria row index.
|
||||
* We only need this if there is a modifier row
|
||||
*/
|
||||
// Get criteria row index.
|
||||
$tempName = $ele['name'];
|
||||
// Get the last digit in the field name
|
||||
preg_match('/^\D*(?=\d)/', $tempName, $r);
|
||||
if (isset($r[0])) {
|
||||
$critIndexPos = strlen($r[0]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue