BBMRI-ERIC / negotiator

An Open-source access negotation system for Research Infrastructures
https://bbmri-eric.github.io/negotiator
GNU Affero General Public License v3.0
22 stars 8 forks source link

[BUG] Wrong order for Negotiation payload #404

Open RadovanTomik opened 2 months ago

RadovanTomik commented 2 months ago

Describe the bug The payload (form response) is saved in the wrong order. Probably the keys are ordered by length. It should be saved as received.

RadovanTomik commented 2 months ago

JSON is by definition unorderderd so there is no easy solution. It can be resolved by altering the column to type "text" however this can goes against database integrity. Ideally the payload should be changed to contain the IDs of inidividual elements and sections.