Browse Source

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...)

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@1885 a333f486-631f-4898-b8df-5754b55c2be0
dflaven 13 years ago
parent
commit
e06ec84874
1 changed files with 2 additions and 1 deletions
  1. 2 1
      core/action.class.inc.php

+ 2 - 1
core/action.class.inc.php

@@ -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