mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
Remove duplicate conditions, causes double action
This commit is contained in:
parent
259a917e38
commit
72e6f6f8f4
@ -366,6 +366,8 @@ class importexport_wizard_basic_import_csv
|
|||||||
{
|
{
|
||||||
|
|
||||||
// Clear conditions that don't do anything
|
// Clear conditions that don't do anything
|
||||||
|
$content['conditions'] = array_unique($content['conditions']);
|
||||||
|
error_log(array2string($content['conditions']));
|
||||||
foreach($content['conditions'] as $key => &$condition) {
|
foreach($content['conditions'] as $key => &$condition) {
|
||||||
if(($condition['true']['action'] == 'none' || !$condition['true']['action']) && !$condition['true']['stop']
|
if(($condition['true']['action'] == 'none' || !$condition['true']['action']) && !$condition['true']['stop']
|
||||||
&& ($condition['false']['action'] == 'none' || !$condition['false']['action']) && !$condition['false']['stop']) {
|
&& ($condition['false']['action'] == 'none' || !$condition['false']['action']) && !$condition['false']['stop']) {
|
||||||
|
Loading…
Reference in New Issue
Block a user