mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-24 06:24:08 +00:00
Filter empty edit notices
Bug: T265798 Change-Id: I10bc181b66288f89775566e1b06ae1e508484724
This commit is contained in:
parent
0a6ccea046
commit
98a1c203c1
|
@ -471,6 +471,10 @@ class ApiVisualEditor extends ApiBase {
|
||||||
// Don't convert the boolean to empty string with formatversion=1
|
// Don't convert the boolean to empty string with formatversion=1
|
||||||
$value[ApiResult::META_BC_BOOLS] = [ 'default' ];
|
$value[ApiResult::META_BC_BOOLS] = [ 'default' ];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Remove empty notices (T265798)
|
||||||
|
$notices = array_filter( $notices );
|
||||||
|
|
||||||
$result = [
|
$result = [
|
||||||
'result' => 'success',
|
'result' => 'success',
|
||||||
'notices' => $notices,
|
'notices' => $notices,
|
||||||
|
|
Loading…
Reference in a new issue