Skip to content

Commit

Permalink
Bugfix: Allow alerts for prepagemodals
Browse files Browse the repository at this point in the history
  • Loading branch information
eynimeni committed Oct 24, 2024
1 parent e950210 commit f772ceb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions classes/output/prepagemodal.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,9 @@ public function __construct(
if (!empty($extrabuttoncondition)) {
$extracondition = new $extrabuttoncondition();
list($extratemplate, $extradata) = $extracondition->render_button($settings, $userid, $full);
if (!empty($data['main'])) {
if (!empty($data['main']) || $full) { // Full means has capability "bookforothers" & therefore 2 areas: top & main.
$extradata['top'] = $extradata["main"];
$extradata['main'] = $data['main'];
$extradata['main'] = $data['main'] ?? [];
}
$data = $extradata;
}
Expand Down

0 comments on commit f772ceb

Please sign in to comment.