Skip to content

Commit

Permalink
Evarisk#3649 [Mail] fix: if getpost model then action also presend
Browse files Browse the repository at this point in the history
  • Loading branch information
evarisk-micka committed Dec 20, 2023
1 parent 82f47ed commit d04123c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,10 @@
}
$trackid = 'riskassessment' . $object->id;

// Select mail models is same action as presend
if (GETPOST('modelselected', 'alpha')) {
$action = 'presend';
}
if ($action == 'presend') {
$langs->load("mails");

Expand Down
4 changes: 4 additions & 0 deletions view/firepermit/firepermit_card.php
Original file line number Diff line number Diff line change
Expand Up @@ -1532,6 +1532,10 @@ class="attachment-thumbail size-thumbnail photo photowithmargin" alt="">
$ref = $object->ref . '/';
$trackid = 'firepermit' . $object->id;

// Select mail models is same action as presend
if (GETPOST('modelselected', 'alpha')) {
$action = 'presend';
}
if ($action == 'presend') {
$langs->load("mails");

Expand Down
4 changes: 4 additions & 0 deletions view/preventionplan/preventionplan_card.php
Original file line number Diff line number Diff line change
Expand Up @@ -1499,6 +1499,10 @@ class="attachment-thumbail size-thumbnail photo photowithmargin" alt="">
$ref = $object->ref . '/';
$trackid = 'preventionplan' . $object->id;

// Select mail models is same action as presend
if (GETPOST('modelselected', 'alpha')) {
$action = 'presend';
}
if ($action == 'presend') {
$langs->load("mails");

Expand Down

0 comments on commit d04123c

Please sign in to comment.