Fix error check for subreddit VOneOf parameters.

This commit is contained in:
Max Goodman
2012-01-02 12:18:47 -08:00
committed by Neil Williams
parent 8b586bc8b0
commit fb79a8cbe5

View File

@@ -1303,7 +1303,7 @@ class ApiController(RedditController):
form.find('#example_title').hide()
elif form.has_errors('domain', errors.BAD_CNAME, errors.USED_CNAME):
form.find('#example_domain').hide()
elif (form.has_errors(None, errors.INVALID_OPTION) or
elif (form.has_errors(('type', 'link_type'), errors.INVALID_OPTION) or
form.has_errors('description', errors.TOO_LONG)):
pass