mediawiki-extensions-Visual.../includes
Bartosz Dziewoński 73dcfb7122 ApiVisualEditorEdit: Fix handling of 'minor' parameter
The client-side code sends the empty string as the value of this
parameter when the edit should be marked as minor, and doesn't set it
at all when it shouldn't (this is the normal convention for boolean
parameters). However, the API code here was incorrectly handling the
empty string, and not marking the edit as minor as a result.

This was revealed by 50883dd7fe. Prior
to that change the original 'minor' parameter was forwarded to the
action=edit call if it was provided, overriding the 'notminor'
parameter, which was effectively added unconditionally.

Bug: T248257
Change-Id: I37fd73851d94906d79943692fb9136da03ea95fa
2020-03-23 17:36:34 +01:00
..
ApiVisualEditor.php Remove X-Parsoid-Variant configuration value, which is no longer needed 2020-03-11 13:24:43 -04:00
ApiVisualEditorEdit.php ApiVisualEditorEdit: Fix handling of 'minor' parameter 2020-03-23 17:36:34 +01:00
SpecialCollabPad.php doc: Bump copyright year for 2020 2020-01-08 09:13:24 -08:00
VisualEditorDataModule.php doc: Bump copyright year for 2020 2020-01-08 09:13:24 -08:00
VisualEditorDesktopArticleTargetInitModule.php doc: Bump copyright year for 2020 2020-01-08 09:13:24 -08:00
VisualEditorHooks.php Remove X-Parsoid-Variant configuration value, which is no longer needed 2020-03-11 13:24:43 -04:00