From b14b4b023321b95e0174aa1364441fb00e690478 Mon Sep 17 00:00:00 2001 From: spez Date: Sun, 4 Jan 2009 10:17:55 -0800 Subject: [PATCH] Fixed check of duplicate urls in promoted edit page --- r2/r2/controllers/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/r2/r2/controllers/api.py b/r2/r2/controllers/api.py index 0dda7b810..28c4f4ba9 100644 --- a/r2/r2/controllers/api.py +++ b/r2/r2/controllers/api.py @@ -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):