Page MenuHomePhabricator

ULS Settings not getting saved
Closed, ResolvedPublic

Description

Author: sonara.arnav

Description:
On Wikidata, if a user enables IME and selects "Gujarati Inscript" for input then after refreshing the page, the settings won't save.

User will once again have to enable IME and select the required input.


Version: unspecified
Severity: normal

Details

Reference
bz41763

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 1:12 AM
bzimport set Reference to bz41763.

This was fixed in gerrit I80eddfe7

Reopening. For logged-in users it works within one page, but all the prefs are reset after going to another page.

It looks like the 'uls-preferences' preference cannot actually be easily saved using the current API. $wgDefaultUserOptions and $wgHiddenPrefs cannot help here, because the options API validates the option names using the Special:Prefs form, but we don't want these prefs to appear in that form.

Does anybody have clever ideas that don't involve dirty hacks and core changes?

(In reply to comment #2)

$wgDefaultUserOptions and $wgHiddenPrefs cannot help
here, because the options API validates the option names using the
Special:Prefs form, but we don't want these prefs to appear in that form.

Does anybody have clever ideas that don't involve dirty hacks and core
changes?

Add a hook in the options API, so you can register "API only" options in extensions. That seems to be the cleaner solution.