Field called 'campaign id' not showing value

PM Sent.
Thank you in advance

Hi @ed.sparks,

I played the migration on my side, but unfortunately, I am not able to reproduce the problem.

Could you put a debugger on the corresponding line of your local gem: https://github.com/ForestAdmin/forest-rails/blob/5e71fda41ea6992c3d4d844f1718edd5abeaf3f2/app/controllers/forest_liana/resources_controller.rb#L244

And look if campaign_id is present in params[:fields] and fields_to_serialize.

Do the records also contain the campaign_id?

Does the problem apply only to the search action or also to the list and show?

‘campaign_id’ is present in both the params[:fields] object and fields_to_serialize
and the records are all showing the correct campaign_id values in the objects



Screenshot 2022-11-04 at 16.25.26
Screenshot 2022-11-04 at 16.24.06

It seems that the issue comes from the gem forestadmin-jsonapi-serializers.

Could you put a debugger on the corresponding line of your local gem: forest-rails/application_controller.rb at main · ForestAdmin/forest-rails · GitHub

Is campaign_id present in json ?

Hi Nicolasa,

It looks like you were right, campaign_id does not appear in the json object.

Is there any more information you need from me on this?

I have detect an issue on our side. I have created a bug ticket that can be followed here.

You’ll be pinged on this thread once fixed.

Hi @ed.sparks,

The fix is now available in the latest version (v7.7.2) of Rails agent.

2 Likes