Forum

Welcome to ProjeQtOr new Forum. We migrated old forum to the new website.
You will find all your posts here, with your usual account.
Just one point : you’ll have to reinitialize your password. Use “Lost password” feature.

api render sub obje...
 
Notifications
Clear all

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

2 Posts
2 Users
0 Reactions
1,164 Views
(@lolo3129)
Posts: 1
New Member
Topic starter
 
[#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
 


 
Posted : 06 Sep 2022 1H53
babynus
(@babynus)
Posts: 14966
Main Contributor Admin
 

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


 
Posted : 06 Sep 2022 2H05
Share:

Scroll to Top