GWicke has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/60082


Change subject: Bug 47434: Actually send oldid on POST
......................................................................

Bug 47434: Actually send oldid on POST

VisualEditor did not send an oldid on POST so far, which disabled selective
serialization in production.

Change-Id: Ib1b7079a7fd3357903e5a14795ed0d2f2bdc5d16
---
M ApiVisualEditor.php
1 file changed, 5 insertions(+), 3 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/VisualEditor 
refs/changes/82/60082/1

diff --git a/ApiVisualEditor.php b/ApiVisualEditor.php
index ed258f2..078f47f 100644
--- a/ApiVisualEditor.php
+++ b/ApiVisualEditor.php
@@ -75,9 +75,11 @@
                        $wgVisualEditorParsoidURL . '/' . 
$wgVisualEditorParsoidPrefix .
                                '/' . urlencode( $title->getPrefixedDBkey() ),
                        array(
-                               'postData' => array( 'content' => $html ),
-                               'timeout' => $wgVisualEditorParsoidTimeout,
-                               'oldid' => $parserParams['oldid']
+                               'postData' => array( 
+                                       'content' => $html,
+                                       'oldid' => $parserParams['oldid'] 
+                               ),
+                               'timeout' => $wgVisualEditorParsoidTimeout
                        )
                );
        }

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib1b7079a7fd3357903e5a14795ed0d2f2bdc5d16
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/VisualEditor
Gerrit-Branch: master
Gerrit-Owner: GWicke <[email protected]>

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

Reply via email to