Closed (fixed)
Project:
REST menu items
Version:
8.x-1.3
Component:
Code
Priority:
Minor
Category:
Feature request
Assigned:
Reporter:
Created:
7 Jul 2017 at 17:24 UTC
Updated:
1 Feb 2018 at 10:49 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
tpzurdo commentedI am also having troubles with this object which is not showing several objects. It is showing only the first one.
Comment #3
fabianderijkThat's a good question. I will take a look at this soon.
Comment #4
xavier.massonHi guys, it's cause in getMenuItems() method src/Plugin/rest/resource/RestMenuItemsResource.php line 240 the array key is a string instead integer, when the serializer convert it in JSON the array is converted to object.
If you change :
to :
After the serialization, it's a array instead object.
Comment #5
xavier.massonComment #7
fabianderijkI've applied the patch. @mattferderer and @tpzurdo could you check if the dev version fixes the problem?
Comment #8
xavier.massonI've patch too quickly, i've miss to change 'below' implementation.
Comment #10
fabianderijkI've just pushed the last addition.
Comment #11
fabianderijkComment #12
fabianderijkThis is fixed in the upcoming 8.x-1.5 release.