Browse Source

Modules implementing a lifecycle written in PHP (and having actions executed on transitions) do not work until 2.1.0. The compatibility patch had been implemented but it was not working. Good candidate for a retrofit to the branch 2.1.0

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@3547 a333f486-631f-4898-b8df-5754b55c2be0
romainq 10 năm trước cách đây
mục cha
commit
d07331fe20
1 tập tin đã thay đổi với 3 bổ sung3 xóa
  1. 3 3
      core/dbobject.class.php

+ 3 - 3
core/dbobject.class.php

@@ -2082,12 +2082,12 @@ abstract class DBObject implements iDisplay
 		{
 			if (is_string($actionHandler))
 			{
-				// Old (pre-2.1.0) action definition without any parameter
-				$aActionCallSpec = array($this, $sActionHandler);
+				// Old (pre-2.1.0 modules) action definition without any parameter
+				$aActionCallSpec = array($this, $actionHandler);
 	
 				if (!is_callable($aActionCallSpec))
 				{
-					throw new CoreException("Unable to call action: ".get_class($this)."::$sActionHandler");
+					throw new CoreException("Unable to call action: ".get_class($this)."::$actionHandler");
 					return;
 				}
 				$bRet = call_user_func($aActionCallSpec, $sStimulusCode);