Skip to content

Commit

Permalink
Merge pull request #46 from YetiForceCompany/revert-45-2020/04/21/1
Browse files Browse the repository at this point in the history
Revert "Improved getting email templates content"
  • Loading branch information
mariuszkrzaczkowski authored Apr 22, 2020
2 parents faad546 + 2ac477a commit db62977
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions plugins/yetiforce/yetiforce.php
Original file line number Diff line number Diff line change
Expand Up @@ -675,9 +675,9 @@ public function getContentEmailTemplate()
$mail = [];
if (\App\Privilege::isPermitted('EmailTemplates', 'DetailView', $templateId)) {
$mail = \App\Mail::getTemplate($templateId);
if ($recordId = rcube_utils::get_input_value('record_id', rcube_utils::INPUT_GPC)) {
if (isset($_POST['record_id'])) {
$textParser = \App\TextParser::getInstanceById(
App\Purifier::purifyByType($recordId, 'Integer'),
App\Purifier::purifyByType(rcube_utils::get_input_value('record_id', rcube_utils::INPUT_GPC), 'Integer'),
App\Purifier::purifyByType(rcube_utils::get_input_value('select_module', rcube_utils::INPUT_GPC), 'Alnum')
);
$mail['subject'] = $textParser->setContent($mail['subject'])->parse()->getContent();
Expand Down
2 changes: 1 addition & 1 deletion version.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

return [
'patch' => '2020.03.13',
'version' => '0.0.88'
'version' => '0.0.87'
];

0 comments on commit db62977

Please sign in to comment.