Skip to content

Commit

Permalink
#190 [Hook] add: missing currentcontext for sessioncard for saturneBa…
Browse files Browse the repository at this point in the history
…nnerTab
  • Loading branch information
nicolas-eoxia committed Feb 16, 2023
1 parent abc2798 commit b1d302f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions class/actions_dolimeet.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -226,9 +226,9 @@ public function doActions(array $parameters, $object, string $action): int
public function saturneBannerTab(array $parameters, CommonObject $object): int
{
global $db, $langs;

// Do something only for the current context
if ($parameters['currentcontext'] == 'saturnecard') {
if (in_array($parameters['currentcontext'], ['saturnecard', 'sessioncard'])) {
if (isModEnabled('contrat')) {
require_once DOL_DOCUMENT_ROOT . '/contrat/class/contrat.class.php';
if (GETPOST('object_type') == 'trainingsession') {
Expand Down

0 comments on commit b1d302f

Please sign in to comment.