Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
GLPI
glpi
Commits
a952b242
Commit
a952b242
authored
Jan 21, 2021
by
Johan Cwiklinski
Committed by
Johan Cwiklinski
Jan 22, 2021
Browse files
Fix missing table
parent
3dc389e9
Changes
1
Hide whitespace changes
Inline
Side-by-side
ajax/comments.php
View file @
a952b242
...
...
@@ -93,7 +93,12 @@ if (isset($_POST["itemtype"])
exit
();
}
$table
=
getTableForItemType
(
$_POST
[
'itemtype'
]);
$itemtype
=
$_POST
[
'itemtype'
];
if
(
is_subclass_of
(
$itemtype
,
'Rule'
))
{
$table
=
Rule
::
getTable
();
}
else
{
$table
=
getTableForItemType
(
$_POST
[
'itemtype'
]);
}
$tmpname
=
Dropdown
::
getDropdownName
(
$table
,
$_POST
[
"value"
],
1
);
if
(
is_array
(
$tmpname
)
&&
isset
(
$tmpname
[
"comment"
]))
{
echo
$tmpname
[
"comment"
];
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment