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

            Bug ID: 63080
           Summary: cannot reset skin preferences to default with api
                    action=options
           Product: MediaWiki
           Version: 1.23-git
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: API
          Assignee: wikibugs-l@lists.wikimedia.org
          Reporter: umherirrender_de...@web.de
                CC: bjor...@wikimedia.org, bryan.tongm...@gmail.com,
                    roan.katt...@gmail.com, s...@reedyboy.net
       Web browser: ---
   Mobile Platform: ---

api action=options has a documentated feature:
"If no value is given (not even an equals sign), the option will be reset to
its default value"

But the query api.php?action=options&change=skin&token= will give "Validation
error for 'skin': ", because HTMLRadioField::validate will return false on the
given null value and that false is converted to a empty string. When it will
return true, the null is passed to User::setOption and than gets it default
value, which is okay.

-- 
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
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to