IchHabRecht / content_defender

Define allowed or denied content element types in your backend layouts
GNU General Public License v2.0
80 stars 35 forks source link

[FEATURE] Keep not-allowed current values labeled as invalid in options #135

Open netcoop opened 1 year ago

netcoop commented 1 year ago

Instead of removing invalid options from the selectors, keep them in if it is the value of the current record, but label them as 'invalid'.

Fixes #134

netcoop commented 1 year ago

The latest commit d9a250e is rebased with current main branch and should have all conflicts resolved, but maybe this is not recognized because the changes had to be made in a slightly different place in the code.