Forum

api render sub obje...
 
Notifications
Retirer tout

api render sub object attributes on the same level as the parent's attributes

2 Posts
2 Utilisateurs
0 Reactions
1,141 Vu
(@lolo3129)
Posts: 1
New Member
Début du sujet
 
[#8468]

Hi,
I try to export activity data through API : /api/index.php?uri=Activity/all
and I get 2 fixPlanning attributes on the same json object : 1 for Activity and 1 for ActivityPlanningElement element
This is not json friendly and value may override.
I suggest modifying /api/index.php:350 at least withif ($res!="") { $res.=", "{$fld}":{";}$res.=jsonDumpObj($val, true);if ($res!="") { $res.="} ";}
It's probably not enough as it could also be an array that need a loop

best regards,
Laurent
 


 
Posté : 6 Sep AM 01:099
(@babynus)
Posts: 14952
Membre Admin
 

This issue no longuer exist on V10.0.5
Always move to latest release.


 
Posté : 6 Sep AM 02:099
Share:
Retour en haut