N°931 TagSet widget and its POC are now more generic (to be used in all AttributeSet hierarchy)

This commit is contained in:
Pierre Goiffon
2018-09-26 10:39:23 +02:00
parent e1f96974bb
commit 1530bb89fe
7 changed files with 146 additions and 166 deletions

View File

@@ -6717,7 +6717,7 @@ class AttributeTagSet extends AttributeDBFieldVoid
/**
* @param \ormTagSet $oValue
*
* @return string JSON to be used in the itop.tagset_widget JQuery widget
* @return string JSON to be used in the itop.set_widget JQuery widget
* @throws \CoreException
*/
public function GetJsonForWidget($oValue)
@@ -6750,7 +6750,7 @@ class AttributeTagSet extends AttributeDBFieldVoid
$aJson['removed'] = array();
$iMaxTags = $this->GetTagMaxNb();
$aJson['max_tags_allowed'] = $iMaxTags;
$aJson['max_items_allowed'] = $iMaxTags;
return json_encode($aJson);
}