...
 
Commits (2)
......@@ -52,14 +52,14 @@ class term extends simplePlugin
),
new SelectAttribute(
_('Referentiel'), _('Referentiel used'),
'ReferentielAndTaxonomy', FALSE,
'ReferentielAndTaxonomy', TRUE,
[],
),
new TextAreaAttribute(
_('Term Long Label'), _('Long Label of Term code'),
'fdTaxonomyTermLongLabel', FALSE
),
new HiddenAttribute('fdTaxonomyTermCompleteCode'),
new HiddenArrayAttribute('fdTaxonomyTermCompleteCode',FALSE,[]),
new HiddenArrayAttribute('fdTaxonomyReferentiel',FALSE,[] ),
new HiddenArrayAttribute('fdTaxonomyName',FALSE,[]),
new TextAreaAttribute(
......@@ -106,8 +106,8 @@ class term extends simplePlugin
$this->fdTaxonomyName = $hRefAndTex[1];
$this->ReferentielAndTaxonomy='';
$this->fdTaxonomyTermCompleteCode=$this->fdTaxonomyReferentiel."-".$this->fdTaxonomyName."-".$this->fdTaxonomyTermCode;
this->attributesAccess['fdTaxonomyTermCompleteCode'][0]=$this->fdTaxonomyReferentiel."-".$this->fdTaxonomyName."-".$this->fdTaxonomyTermCode;
var_dump($this->fdTaxonomyReferentiel."-".$this->fdTaxonomyName."-".$this->fdTaxonomyTermCode);
var_dump($this->fdTaxonomyTermCompleteCode);
return parent::prepare_save();
}
}
......@@ -25,7 +25,7 @@ class termManagement extends management
public static $columns = [
['ObjectTypeColumn', []],
['LinkColumn', ['attributes' => 'mainAttr', 'label' => 'Name']],
['LinkColumn', ['attributes' => 'fdTaxonomyCode', 'label' => 'Name']],
['LinkColumn', ['attributes' => 'fdTaxonomyReferentiel', 'label' => 'Referentiel']],
['LinkColumn', ['attributes' => 'fdTaxonomyName', 'label' => 'Taxonomy']],
['LinkColumn', ['attributes' => 'description', 'label' => 'Description']],
......