<fieldset> name attribute not set on form xml

9 Jahre 4 Monate her - 9 Jahre 4 Monate her #506 von Joris Ceelen
<fieldset> name attribute not set on form xml wurde erstellt von 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
Letzte Änderung: 9 Jahre 4 Monate her von Joris Ceelen.

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Ladezeit der Seite: 0.152 Sekunden
Powered by Kunena Forum

Wir verwenden eigene Cookies und Cookies von Drittanbietern, um Ihr Nutzererlebnis zu verbessern und Ihnen einen optimalen Service zu bieten. Wenn Sie die Website weiter nutzen, gehen wir davon aus, dass Sie mit unserer Cookie-Politik einverstanden sind.