Not well JSON formatted response when clicking on first/empty combo option

Hi!

While enabling CSRF with CI4 and estabilishing a setRelation for a field, the quick search transforms into a combo box as usual. Problem is: if you click in the first (empty) option to clear the filter it triggers a “Not well JSON formatted response” error. I’ve noticed that this single click generates two or even more xhr requests instantly (one of them is a 303). Steps to reproduce:

  1. Enable CSRF in CI4 via Config\Filters ;
  2. Use setRelation() in any field (GCE v3.1.0).
  3. Filter that field.
  4. Clear the filtering by clicking on the first (empty) combo option.
  5. “Not well JSON formatted response” appears.

Thanks for looking into this issue.
Bernhard Enders.

Hello @bgeneto and thank you for the detailed steps to reproduce :pray:

Yes it is reproducible. Very weird one. Will investigate and keep you updated.

Regards
Johnny

1 Like

Hello @bgeneto ,

Glad to inform you that version 3.1.1 is now released and it is also including this change.

Regards
Johnny

1 Like