Fixed check of duplicate urls in promoted edit page

This commit is contained in:
spez
2009-01-04 10:17:55 -08:00
parent 87daf2d130
commit b14b4b0233

View File

@@ -1347,7 +1347,7 @@ class ApiController(RedditController):
res._focus('title')
elif res._chk_errors((errors.NO_URL,errors.BAD_URL)):
res._focus('url')
elif res._chk_error(errors.ALREADY_SUB) and (not l or url != l.url):
elif (not l or url != l.url) and res._chk_error(errors.ALREADY_SUB):
#if url == l.url, we're just editting something else
res._focus('url')
elif res._chk_error(errors.SUBREDDIT_NOEXIST):