Totally deny delete is not so good. Imagine you testing a solution with extra field and you have done a mistake or a new feature in Dolibarr deprecate the extra fields. You must still be able to delete extra field.
Just may be add a double check :
- “Confirm delete ?”
- Check for data
- “Fields have data, are you really sure to delete this field ?”
De : address@hidden [mailto:address@hidden De la part de Doursenaud, Raphaël
Envoyé : mercredi 14 janvier 2015 12:03
À : Posts about Dolibarr ERP & CRM development and coding
Objet : Re: [Dolibarr-dev] Extrafields delete alert
2015-01-13 18:26 GMT+01:00 Claudio Aschieri <address@hidden>:
I'd like that when I try to delete an extrafields, the system ask me to
confirm operation because without any alert is really easy do a disaster
with only one click.
I think that when an extrafield has at least one value stored in
database, the system should deny to delete that field from db table.
Dolibarr-dev mailing list
2 avenue du Président Pierre Angot
64053 PAU CEDEX 9
SARL GPC.solutions au capital de 7 500 € - R.C.S. PAU 528 995 921