<fieldset> name attribute not set on form xml

9 năm 5 tháng trước - 9 năm 5 tháng trước #506 bởi Joris Ceelen
<fieldset> name attribute not set on form xml was created by 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
Last edit: 9 năm 5 tháng trước by Joris Ceelen.

Vui lòng Đăng nhập hoặc Tạo tài khoản để tham gia cuộc hội thoại.

Thời gian tải trang: 0.124 giây
Powered by Kunena Forum

We use cookies so that you can place orders and we can provide a better service. You can control the use of cookies at the individual browser level. If you reject cookies, you may still use our website, but your ability to use some features or areas of our website may be limited.