National-Forestry-Authority / forests

3 stars 1 forks source link

Don't allow reordering of programs/activities #332

Open peacog opened 3 months ago

peacog commented 3 months ago

In #299 multivalue Program fields were added to the CFR. On the management task form these programs/activities are loaded into the Activity and Sub-activity selects and stored in the database as a string with the format asset_id:fieldname:delta. Because we are storing the delta we cannot allow an editor to change the order of the program field deltas.

Image

There is a core patch that does this but it is huge and unlikely to be accepted in the near future.

peacog commented 2 months ago

Ready for testing