Skip to content

Commit

Permalink
Merge pull request #3955 from Evarisk/develop
Browse files Browse the repository at this point in the history
10.2.0
  • Loading branch information
evarisk-micka authored Jun 5, 2024
2 parents a388bfb + 6ca0290 commit f6cc228
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions class/actions_digiriskdolibarr.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1017,9 +1017,9 @@ public function saturneAdminDocumentData(array $parameters): int
];

// Do something only for the current context.
if (in_array($parameters['currentcontext'], ['digiriskdolibarradmindocuments'])) {
if (strpos($parameters['context'], 'digiriskdolibarradmindocuments')) {
$this->results = $types;
}
}

return 0; // or return 1 to replace standard code.
}
Expand All @@ -1040,7 +1040,7 @@ public function saturneAdminAdditionalConfig(array $parameters): int
];

// Do something only for the current context.
if (in_array($parameters['currentcontext'], ['digiriskdolibarradmindocuments'])) {
if (strpos($parameters['context'], 'digiriskdolibarradmindocuments')) {
$this->results = $additionalConfig;
}

Expand Down

0 comments on commit f6cc228

Please sign in to comment.