Restore the previous URLMaker in case the sending of a notification is not the last action of a page... (e.g. if the page displays the details of an object after sending the notifications...)

SVN:trunk[1885]
This commit is contained in:
Denis Flaven
2012-03-07 18:57:54 +00:00
parent 97647c5a5a
commit 2c49d1f96f

View File

@@ -303,7 +303,8 @@ class ActionEmail extends ActionNotification
ApplicationContext::SetUrlMakerClass($sPreviousUrlMaker);
throw $e;
}
ApplicationContext::SetUrlMakerClass($sPreviousUrlMaker);
if (!is_null($oLog))
{
// Note: we have to secure this because those values are calculated