Skip to content

Commit

Permalink
Fix salesagility#10009 - Cannot configure Module Menu Filters on PHP8+
Browse files Browse the repository at this point in the history
Make object instead of calling function statically
  • Loading branch information
JackBuchanan committed Apr 3, 2023
1 parent 34d2745 commit 4ccddda
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/Studio/SaveTabs.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@


require_once('modules/Studio/TabGroups/TabGroupHelper.php');
TabGroupHelper::saveTabGroups($_POST);
$tg = new TabGroupHelper();
$tg->saveTabGroups($_POST);
ob_clean();
if (!empty($_POST['grouptab_lang'])) {
header('Location: index.php?module=Studio&action=TabGroups&lang='.$_POST['grouptab_lang']);
Expand Down

1 comment on commit 4ccddda

@meierwitt
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, thank you.

This works for me with 7.13.2, 8.2 and 8.3 beta and with PHP 8.0, 8.1 and 8.2

Frank

Please sign in to comment.