Robert Vogel has uploaded a new change for review.

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

Change subject: PageAssignments: Fixed API response in MW 1_27
......................................................................

PageAssignments: Fixed API response in MW 1_27

Since a few versions MediaWiki API base class do not use json_encode for
objects anymore, but make an implicit cast to string

This change fixes the API response so that the "assignments" field hold
objects instead of strings

Change-Id: Ia6fe1376fc33b37f5437d4c408559d85f8563ec5
---
M PageAssignments/includes/api/BSApiPageAssignmentStore.php
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/BlueSpiceExtensions 
refs/changes/66/311966/1

diff --git a/PageAssignments/includes/api/BSApiPageAssignmentStore.php 
b/PageAssignments/includes/api/BSApiPageAssignmentStore.php
index d11aaf1..6150f43 100644
--- a/PageAssignments/includes/api/BSApiPageAssignmentStore.php
+++ b/PageAssignments/includes/api/BSApiPageAssignmentStore.php
@@ -54,7 +54,7 @@
                                $aPageAssignments[$row->pa_page_id] = array();
                        }
                        $aPageAssignments[$row->pa_page_id][] =
-                               BSAssignableBase::factory( 
$row->pa_assignee_type, $row->pa_assignee_key );
+                               BSAssignableBase::factory( 
$row->pa_assignee_type, $row->pa_assignee_key )->toStdClass();
                }
 
                return $aPageAssignments;

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia6fe1376fc33b37f5437d4c408559d85f8563ec5
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BlueSpiceExtensions
Gerrit-Branch: master
Gerrit-Owner: Robert Vogel <vo...@hallowelt.biz>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to