Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Error behaviour
Patrick_ Offline
Junior Member
**
Posts: 27
Joined: Oct 2011
Post: #1
Error behaviour
The current XThreads error behavior with custom fields is a little annoying for users. I have a lot of custom fields, but on submit, XThreads only gives an error of the first invalid field. It should list all invalid fields, just like MyBB does.

edit: looking at the code, this actually seems to be a bug

PHP Code:
	$errors = xthreads_input_validate($data, $threadfield_cache, $update_tid);
	foreach($errors as &$error)
		call_user_func_array(array($ph, 'set_error'), $error);


but any error the validation encounters, triggers a break, so there will be never more than one error.

(This post was last modified: 10-21-2011 05:44 PM by Patrick_.)
10-21-2011 05:37 PM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
Error behaviour - Patrick_ - 10-21-2011 05:37 PM
RE: Error behaviour - ZiNgA BuRgA - 10-21-2011, 08:04 PM
RE: Error behaviour - Patrick_ - 10-21-2011, 09:50 PM
RE: Error behaviour - ZiNgA BuRgA - 10-22-2011, 09:54 AM
RE: Error behaviour - Patrick_ - 10-22-2011, 05:32 PM

 Standard Tools
Forum Jump: