Hi michatmaster,
Sorry for not getting back to you sooner. Just playing catch-up now.
You *may* be right it's 2.2.0 related, but I can't see the cause just yet.
First off, do you have error reporting turned up high in your config.php file ($g_default_error_reporting = 2047)? If so, ANY minor warning (such as referencing a var that isn't defined - like a checkbox field that wasn't checked) will output a notice/warning in the code and prevent the API from redirecting the user to the next page.
If you have that var set, a quick fix would be to just comment it out.
Looking over the validation code, it actually looks like the problem lies there: I think it *will* throw a notice/warning when attempting to reference a key that doesn't exist in the $fields var (line 119).
Try this: change line 119 from this:
To this:
Let me know if that helps.
- Ben
Sorry for not getting back to you sooner. Just playing catch-up now.
You *may* be right it's 2.2.0 related, but I can't see the cause just yet.
First off, do you have error reporting turned up high in your config.php file ($g_default_error_reporting = 2047)? If so, ANY minor warning (such as referencing a var that isn't defined - like a checkbox field that wasn't checked) will output a notice/warning in the code and prevent the API from redirecting the user to the next page.
If you have that var set, a quick fix would be to just comment it out.
Looking over the validation code, it actually looks like the problem lies there: I think it *will* throw a notice/warning when attempting to reference a key that doesn't exist in the $fields var (line 119).
Try this: change line 119 from this:
PHP Code:
else if ($comparison == "not_equal" && $fields[$field_to_check] == $value_to_check)
To this:
PHP Code:
else if ($comparison == "not_equal" && (!array_key_exists($field_to_check, $fields) || $fields[$field_to_check] == $value_to_check))
Let me know if that helps.
- Ben