Hi.
It seems that in saveObjectLinkedByIdToMainObject you want to hide errors.
In fact when last save is OK , if previous result was OK you overwrite last id, but if it was not you overwrite whole result.
It's OK ?
Hi,
No, in saveObjectLinkedByIdToMainObject, several links can be save at one time.
It manages links from Organization to Projects, and so saves idOrganization in projects.
$result concatenates id of all updated project.
I tested, this works fine.
But this highlighted another issue : page was not correctly refreshed to show new links.
This is fixed on V6.3