jenkins-bot has submitted this change and it was merged. (
https://gerrit.wikimedia.org/r/350419 )
Change subject: ApiTitleQueryStore: Fix for not returning Titles from NS_MAIN
......................................................................
ApiTitleQueryStore: Fix for not returning Titles from NS_MAIN
Namespace main (0) was removed from namespaces array because 0 is
considered false
ERM: #6208
Needs cherry-picking to REL1_27
Change-Id: Iadd3eaa5de7182442728cc80f3bd520372daaa4a
---
M includes/api/BSApiTitleQueryStore.php
1 file changed, 1 insertion(+), 1 deletion(-)
Approvals:
Robert Vogel: Looks good to me, approved
jenkins-bot: Verified
diff --git a/includes/api/BSApiTitleQueryStore.php
b/includes/api/BSApiTitleQueryStore.php
index 970b89e..ad539da 100644
--- a/includes/api/BSApiTitleQueryStore.php
+++ b/includes/api/BSApiTitleQueryStore.php
@@ -49,7 +49,7 @@
} else {
//validate user input
foreach( $aOptions['namespaces'] as $iKey => $iNSId ) {
- if( !$iNSId || !is_numeric( $iNSId ) ) {
+ if( !$iNSId && !is_numeric( $iNSId ) ) {
unset( $aOptions['namespaces'][$iKey] );
continue;
}
--
To view, visit https://gerrit.wikimedia.org/r/350419
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Iadd3eaa5de7182442728cc80f3bd520372daaa4a
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/BlueSpiceFoundation
Gerrit-Branch: master
Gerrit-Owner: ItSpiderman <[email protected]>
Gerrit-Reviewer: Robert Vogel <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits