Bug ID: 63080
           Summary: cannot reset skin preferences to default with api
           Product: MediaWiki
           Version: 1.23-git
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: API
       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

Reply via email to