Skip to content

Commit af49feb

Browse files
committed
fix(form): count forms must take into account visibility
1 parent 35f9b6e commit af49feb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

inc/form.class.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1541,6 +1541,7 @@ public static function countAvailableForm(): int {
15411541
'WHERE' => [
15421542
"$formTable.is_active" => '1',
15431543
"$formTable.is_deleted" => '0',
1544+
"$formTable.is_visible" => '1',
15441545
'OR' => [
15451546
"$formTable.language" => [$_SESSION['glpilanguage'], '0', '', null],
15461547
"$formLanguage.name" => $_SESSION['glpilanguage'],

0 commit comments

Comments
 (0)