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 ...@@ -52,14 +52,14 @@ class term extends simplePlugin
), ),
new SelectAttribute( new SelectAttribute(
_('Referentiel'), _('Referentiel used'), _('Referentiel'), _('Referentiel used'),
'ReferentielAndTaxonomy', FALSE, 'ReferentielAndTaxonomy', TRUE,
[], [],
), ),
new TextAreaAttribute( new TextAreaAttribute(
_('Term Long Label'), _('Long Label of Term code'), _('Term Long Label'), _('Long Label of Term code'),
'fdTaxonomyTermLongLabel', FALSE 'fdTaxonomyTermLongLabel', FALSE
), ),
new HiddenAttribute('fdTaxonomyTermCompleteCode'), new HiddenArrayAttribute('fdTaxonomyTermCompleteCode',FALSE,[]),
new HiddenArrayAttribute('fdTaxonomyReferentiel',FALSE,[] ), new HiddenArrayAttribute('fdTaxonomyReferentiel',FALSE,[] ),
new HiddenArrayAttribute('fdTaxonomyName',FALSE,[]), new HiddenArrayAttribute('fdTaxonomyName',FALSE,[]),
new TextAreaAttribute( new TextAreaAttribute(
...@@ -106,8 +106,8 @@ class term extends simplePlugin ...@@ -106,8 +106,8 @@ class term extends simplePlugin
$this->fdTaxonomyName = $hRefAndTex[1]; $this->fdTaxonomyName = $hRefAndTex[1];
$this->ReferentielAndTaxonomy=''; $this->ReferentielAndTaxonomy='';
$this->fdTaxonomyTermCompleteCode=$this->fdTaxonomyReferentiel."-".$this->fdTaxonomyName."-".$this->fdTaxonomyTermCode; $this->fdTaxonomyTermCompleteCode=$this->fdTaxonomyReferentiel."-".$this->fdTaxonomyName."-".$this->fdTaxonomyTermCode;
this->attributesAccess['fdTaxonomyTermCompleteCode'][0]=$this->fdTaxonomyReferentiel."-".$this->fdTaxonomyName."-".$this->fdTaxonomyTermCode; var_dump($this->fdTaxonomyTermCompleteCode);
var_dump($this->fdTaxonomyReferentiel."-".$this->fdTaxonomyName."-".$this->fdTaxonomyTermCode);
return parent::prepare_save(); 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