From 6f8762e12132cc22e2dc871dab08752cfd7514ee Mon Sep 17 00:00:00 2001 From: Andrea Zagli Date: Wed, 9 Aug 2017 16:07:04 +0200 Subject: [PATCH] ZakFormElement didn't take into account visible property (closes #1131). --- src/form.c | 2 +- src/formelement.c | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) 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) -- 2.49.0