Commit 4695f7d7 authored by Antoine Gallavardin's avatar Antoine Gallavardin
Browse files

correct some attribute properties

parent c9048474
......@@ -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();
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment