]> saetta.ns0.it Git - zakform/libzakform/commitdiff
Typo.
authorAndrea Zagli <azagli@libero.it>
Fri, 1 May 2020 06:40:52 +0000 (08:40 +0200)
committerAndrea Zagli <azagli@libero.it>
Fri, 1 May 2020 06:40:52 +0000 (08:40 +0200)
src/formvalidatorcomposite.c

index b17a23951c64d4f0636896e7a23015f92c954b01..66be40207a1238a70ccf343a7cf908d4d4777996 100644 (file)
@@ -253,7 +253,7 @@ _zak_form_validator_composite_xml_parsing (ZakFormValidator *validator, xmlNode
 
                                        n = (Node *)g_new0 (Node, 1);
 
-                                       if (g_strcmp0 ((gchar *)xmlGetProp (cur, (xmlChar *)"element"), "form") == 0)
+                                       if (g_strcmp0 ((gchar *)xmlGetProp (cur, (xmlChar *)"validator_type"), "form") == 0)
                                                {
                                                        ZakFormValidatorConstructorFunc validator_constructor;
 
@@ -269,7 +269,7 @@ _zak_form_validator_composite_xml_parsing (ZakFormValidator *validator, xmlNode
                                                                }
 
                                                        n->form_validator = validator_constructor ();
-                                                       zak_form_validator_xml_parsing (n->element_validator, cur, form);
+                                                       zak_form_validator_xml_parsing (n->form_validator, cur, form);
                                                }
                                        else
                                                {