Skip to content

Commit

Permalink
fix(form): count forms must take into account visibility
Browse files Browse the repository at this point in the history
  • Loading branch information
btry committed Feb 16, 2022
1 parent 35f9b6e commit af49feb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions inc/form.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1541,6 +1541,7 @@ public static function countAvailableForm(): int {
'WHERE' => [
"$formTable.is_active" => '1',
"$formTable.is_deleted" => '0',
"$formTable.is_visible" => '1',
'OR' => [
"$formTable.language" => [$_SESSION['glpilanguage'], '0', '', null],
"$formLanguage.name" => $_SESSION['glpilanguage'],
Expand Down

0 comments on commit af49feb

Please sign in to comment.