BeAPI/bea-content-sync-fusion

Parent term not matched on update

Rahe opened this issue · 2 comments

Rahe commented

When making a synchronisation with terms from
content/plugins/bea-content-sync-fusion/classes/client/taxonomy.php:29
TO
content/plugins/bea-content-sync-fusion/classes/client/taxonomy.php:54

The parent_id is used from the $data array but is not transformed to the local version.
So if the all the ids stay the same from emitter to the receiver eveyrthing is fine, but if there is already existing content the link is missing.

We should see this instead :

'parent'      => BEA_CSF_Relations::get_object_for_any( 'taxonomy', $data['blogid'], $sync_fields['_current_receiver_blog_id'], $data['parent'], $data['parent'] ),
Rahe commented

Pull request linked to this #75

OK, fixed with your PR.