Skip to content

Commit

Permalink
Update inc/model.class.php
Browse files Browse the repository at this point in the history
Co-authored-by: Romain B. <[email protected]>
  • Loading branch information
Lainow and Rom1-B authored Jun 10, 2024
1 parent d149685 commit 5587069
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/model.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -823,7 +823,7 @@ public function getTabNameForItem(CommonGLPI $item, $withtemplate = 0)
public static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtemplate = 0)
{

if ($item->getType() == __CLASS__) {
if ($item->getType() == __CLASS__ && $item instanceof self) {
switch ($tabnum) {
case 1:
$item->showAdvancedForm($item->getID()); /** @phpstan-ignore-line */
Expand Down

0 comments on commit 5587069

Please sign in to comment.