Skip to content

Commit

Permalink
fix(condition): permit update of conditionnable items without specify…
Browse files Browse the repository at this point in the history
…ing conditions agaiin

Signed-off-by: Thierry Bugier <tbugier@teclib.com>
  • Loading branch information
btry committed Jan 24, 2020
1 parent dd48336 commit b95bdae
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions inc/conditionnable.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@
trait PluginFormcreatorConditionnable
{
public function updateConditions(CommonDBTM $item, $input) {
if (!isset($input['show_rule'])) {
return false;
}
$showRule = $input['show_rule'];
if ($showRule == PluginFormcreatorCondition::SHOW_RULE_ALWAYS) {
return false;
Expand Down

0 comments on commit b95bdae

Please sign in to comment.