Unverified Commit 8ce77b3d authored by Sebastian Castro's avatar Sebastian Castro
Browse files

Fixs message get lost on validate or refuse

parent bfbe750e
......@@ -145,8 +145,8 @@ class ElementPendingService
private function sendMailToContributorAfterValidationOrRefusal($element, $isAccepted, $validationType, $message = null)
{
if (!$message && $element->getCurrContribution()) $message = $element->getCurrContribution()->getResolvedMessage();
else $message = "";
if (!$message && $element->getCurrContribution())
$message = $element->getCurrContribution()->getResolvedMessage();
$this->mailService->sendAutomatedMail($isAccepted ? 'validation' : 'refusal', $element, $message);
}
}
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment