<fieldset> name attribute not set on form xml

9 år 9 måneder siden - 9 år 9 måneder siden #506 af Joris Ceelen
<fieldset> name attribute not set on form xml blev oprettet af Joris Ceelen
Hello
I think that when the:
<fieldset> name attribute is not set  on the generated form xml of the model,

the following code does not work in a tmpl file::
$fields=$this->form->getFieldset() ;
    foreach ($fields as $field) {
            $this->form->setFieldAttribute($field->fieldname, 'readonly', 'true');        
    }
because:
$fields=$this->form->getFieldset() ;
or
$fields=$this->form->getFieldsets() ;
returns nothing

I suppose you can the name attribute to "default" when  generating the form XML for the component
<fieldset name="default">
Thanks, Joris
Sidste redigering: 9 år 9 måneder siden ved Joris Ceelen.

Venligst Log på eller Opret en konto for at deltage i samtalen

Tid til at oprette siden: 0.106 sekunder
Leveret af Kunena Forum

Vi we benytter cookies, så vi bedst muligt kan levere vores services. For mere information, se vores