Skip to content

Commit b95bdae

Browse files
committed
fix(condition): permit update of conditionnable items without specifying conditions agaiin
Signed-off-by: Thierry Bugier <tbugier@teclib.com>
1 parent dd48336 commit b95bdae

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

inc/conditionnable.class.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@
3232
trait PluginFormcreatorConditionnable
3333
{
3434
public function updateConditions(CommonDBTM $item, $input) {
35+
if (!isset($input['show_rule'])) {
36+
return false;
37+
}
3538
$showRule = $input['show_rule'];
3639
if ($showRule == PluginFormcreatorCondition::SHOW_RULE_ALWAYS) {
3740
return false;

0 commit comments

Comments
 (0)