ZakFormCgiFormPrivate *priv;
+ GPtrArray *ar_ar_elems;
+ guint l;
+
+ ZakFormCgiFormElement *ar_element;
+
priv = ZAK_FORM_CGI_FORM_GET_PRIVATE (zakcgiform);
if (priv->bootstrap_version != NULL)
{
ZakFormCgiFormElement *element = (ZakFormCgiFormElement *)g_ptr_array_index (priv->ar_elems, i);
- zak_form_cgi_form_element_set_bootstrap_version (element, priv->bootstrap_version);
+ if (ZAK_FORM_IS_ELEMENT_ARRAY (element))
+ {
+
+ ar_ar_elems = zak_form_element_array_get_elements (ZAK_FORM_ELEMENT (element));
+ for (l = 0; l < ar_ar_elems->len; l++)
+ {
+ ar_element = (ZakFormCgiFormElement *)g_ptr_array_index (ar_ar_elems, l);
+ zak_form_cgi_form_element_set_bootstrap_version (ar_element, priv->bootstrap_version);
+ }
+ }
+ else
+ {
+ zak_form_cgi_form_element_set_bootstrap_version (element, priv->bootstrap_version);
+ }
}
}