From: Andrea Zagli Date: Wed, 9 Aug 2017 14:07:04 +0000 (+0200) Subject: ZakFormElement didn't take into account visible property (closes #1131). X-Git-Url: https://saetta.ns0.it/gitweb?a=commitdiff_plain;h=6f8762e12132cc22e2dc871dab08752cfd7514ee;p=zakform%2Fcgi ZakFormElement didn't take into account visible property (closes #1131). --- diff --git a/src/form.c b/src/form.c index 5bcfa6c..1b2e494 100644 --- a/src/form.c +++ b/src/form.c @@ -236,7 +236,7 @@ zak_form_cgi_form_bind (ZakFormCgiForm *zakcgiform) GPtrArray *ar_elements; guint l; - ar_elements = zak_form_element_array_get_elements (ZAK_FORM_ELEMENT_ARRAY (element)); + ar_elements = zak_form_element_array_get_elements (ZAK_FORM_ELEMENT (element)); for (l = 0; l < ar_elements->len; l++) { _zak_form_cgi_form_bind (priv, (ZakFormCgiFormElement *)g_ptr_array_index (ar_elements, l)); diff --git a/src/formelement.c b/src/formelement.c index 922406f..356b277 100644 --- a/src/formelement.c +++ b/src/formelement.c @@ -187,6 +187,11 @@ gchar str = g_string_new ("
len > 0)