Custom action : Fixed display of the custom onSuccess message
authorBenjamin Renard <brenard@easter-eggs.com>
Wed, 6 Apr 2011 13:55:45 +0000 (15:55 +0200)
committerBenjamin Renard <brenard@easter-eggs.com>
Wed, 6 Apr 2011 13:55:45 +0000 (15:55 +0200)
public_html/custom_action.php

index 6a9cbd8..af7a228 100644 (file)
@@ -43,7 +43,7 @@ if(LSsession :: startLSsession()) {
                 $GLOBALS['Smarty'] -> assign('pagetitle',$title.' : '.$objectname);
                 if ($config['function']($object)) {
                   if ($config['onSuccessMsgFormat']) {
-
+                    LSsession :: addInfo(getFData($config['onSuccessMsgFormat'],$objectname));
                   }
                   else {
                     LSsession :: addInfo(getFData(_('The custom action %{customAction} have been successfully execute on %{objectname}.'),array('objectname' => $objectname,'customAction' => $_GET['customAction'])));