WMDE-leszek has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/364191 )

Change subject: [WIP] Do not turn empty strings to undefined
......................................................................

[WIP] Do not turn empty strings to undefined

Change-Id: If0028230203261b2a279cfaf99619927ef32c4e6
---
M src/RepoApi.js
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/WikibaseJavaScriptApi 
refs/changes/91/364191/1

diff --git a/src/RepoApi.js b/src/RepoApi.js
index 14c0365..45467e8 100644
--- a/src/RepoApi.js
+++ b/src/RepoApi.js
@@ -853,7 +853,7 @@
                }
 
                // We must enforce the alternative separation character, see 
ApiBase.php::explodeMultiValue.
-               return value ? '\x1f' + value : undefined;
+               return value ? '\x1f' + value : value;
        },
 
        /**

-- 
To view, visit https://gerrit.wikimedia.org/r/364191
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: If0028230203261b2a279cfaf99619927ef32c4e6
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/WikibaseJavaScriptApi
Gerrit-Branch: master
Gerrit-Owner: WMDE-leszek <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to