/*
- * Copyright (C) 2015-2017 Andrea Zagli <azagli@libero.it>
+ * Copyright (C) 2015-2020 Andrea Zagli <azagli@libero.it>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
#include "form.h"
#include "formelementfilter.h"
#include "formelementvalidator.h"
+#include "formelementarray.h"
typedef ZakFormValidator *(* FormValidatorConstructorFunc) (void);
{
ZakFormElement *element = (ZakFormElement *)g_ptr_array_index (priv->ar_elements, i);
+ if (ZAK_FORM_IS_ELEMENT_ARRAY (element)
+ && g_strstr_len (id, -1, "::") != NULL)
+ {
+ gchar **splitted;
+
+ splitted = g_strsplit (id, "::", -1);
+
+ if (g_strcmp0 (zak_form_element_get_name (element), splitted[0]) == 0)
+ {
+ ret = zak_form_element_array_get_element_by_id (element, splitted[1]);
+ break;
+ }
+
+ g_strfreev (splitted);
+ }
+
if (g_strcmp0 (zak_form_element_get_name (element), id) == 0)
{
ret = element;