Browse Source

Bug fix: allow modifying an object as if in target state, before applying the stimulus (cf PortalWebpage).

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@1507 a333f486-631f-4898-b8df-5754b55c2be0
dflaven 13 years ago
parent
commit
334bae5853
1 changed files with 4 additions and 4 deletions
  1. 4 4
      synchro/synchrodatasource.class.inc.php

+ 4 - 4
synchro/synchrodatasource.class.inc.php

@@ -447,18 +447,18 @@ EOF
 		return str_replace($aSearches, $aReplacements, $this->Get('url_application'));
 	}
 	
-	public function GetAttributeFlags($sAttCode, &$aReasons = array())
+	public function GetAttributeFlags($sAttCode, &$aReasons = array(), $sTargetState = '')
 	{
 		if (($sAttCode == 'scope_class') && (!$this->IsNew()))
 		{
 			return OPT_ATT_READONLY;
 		}
-		return parent::GetAttributeFlags($sAttCode, $aReasons);
+		return parent::GetAttributeFlags($sAttCode, $aReasons, $sTargetState);
 	}
 		
-	public function UpdateObjectFromPostedForm($sFormPrefix = '', $sAttList = null)
+	public function UpdateObjectFromPostedForm($sFormPrefix = '', $sAttList = null, $sTargetState = '')
 	{
-		parent::UpdateObjectFromPostedForm($sFormPrefix, $sAttList);
+		parent::UpdateObjectFromPostedForm($sFormPrefix, $sAttList, $sTargetState);
 		// And now read the other post parameters...
 		$oAttributeSet = $this->Get('attribute_list');
 		$aAttributes = array();