Skip to content

Commit

Permalink
do not add dup hidden input in test mode
Browse files Browse the repository at this point in the history
  • Loading branch information
cconard96 committed Dec 17, 2023
1 parent 495d2bb commit a150d5a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Rule.php
Original file line number Diff line number Diff line change
Expand Up @@ -2637,7 +2637,9 @@ public function displayCriteriaSelectPattern($name, $ID, $condition, $value = ""
RuleImportAsset::PATTERN_ONLY_CRITERIA_RULE,
];
if (in_array($condition, $hiddens)) {
echo Html::hidden($name, ['value' => 1]);
if (!$test) {
echo Html::hidden($name, ['value' => 1]);
}
$display = true;
}

Expand Down

0 comments on commit a150d5a

Please sign in to comment.