Remove duplicate conditions, causes double action

This commit is contained in:
Nathan Gray 2012-10-09 15:43:59 +00:00
parent 259a917e38
commit 72e6f6f8f4

View File

@ -366,6 +366,8 @@ class importexport_wizard_basic_import_csv
{
// Clear conditions that don't do anything
$content['conditions'] = array_unique($content['conditions']);
error_log(array2string($content['conditions']));
foreach($content['conditions'] as $key => &$condition) {
if(($condition['true']['action'] == 'none' || !$condition['true']['action']) && !$condition['true']['stop']
&& ($condition['false']['action'] == 'none' || !$condition['false']['action']) && !$condition['false']['stop']) {