https://bugzilla.wikimedia.org/show_bug.cgi?id=37963

Tyler Romeo <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
                 CC|                            |[email protected]

--- Comment #1 from Tyler Romeo <[email protected]> 2012-08-02 20:57:47 UTC 
---
Actually, both getOption() and setOption() call loadOptions(), which should be
loading the default options into the object. However, it seems that
loadOptions() refuses to work with anonymous users, which means the default
options end up not getting loaded.

The only reason the second testcase (where you get and then set) even works is
because getOption() has an additional check. The confusion here is because
getOption() has an additional check (the if statement you see) that loads the
default options.

I've prepared a fix for this and it is currently in review on Gerrit here:
https://gerrit.wikimedia.org/r/17464

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to