Ver código fonte

Nicer handling of indirect linksets

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@525 a333f486-631f-4898-b8df-5754b55c2be0
dflaven 15 anos atrás
pai
commit
c420dbac73
1 arquivos alterados com 2 adições e 0 exclusões
  1. 2 0
      core/attributedef.class.inc.php

+ 2 - 0
core/attributedef.class.inc.php

@@ -280,6 +280,7 @@ class AttributeLinkedSet extends AttributeDefinition
 
 	public function IsWritable() {return true;} 
 	public function IsLinkSet() {return true;} 
+	public function IsIndirect() {return false;} 
 
 	public function GetValuesDef() {return $this->Get("allowed_values");} 
 	public function GetPrerequisiteAttributes() {return $this->Get("depends_on");} 
@@ -334,6 +335,7 @@ class AttributeLinkedSetIndirect extends AttributeLinkedSet
 	{
 		return array_merge(parent::ListExpectedParams(), array("ext_key_to_remote"));
 	}
+	public function IsIndirect() {return true;} 
 	public function GetExtKeyToRemote() { return $this->Get('ext_key_to_remote'); }
 	public function GetEditClass() {return "LinkedSet";}
 }