mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-08 00:52:01 +01:00
Add result message on extrafield deletion
This commit is contained in:
@@ -401,8 +401,12 @@ if ($action == 'update') {
|
||||
// Delete attribute
|
||||
if ($action == 'delete') {
|
||||
if (GETPOSTISSET("attrname") && preg_match("/^\w[a-zA-Z0-9-_]*$/", GETPOST("attrname", 'aZ09'))) {
|
||||
$result = $extrafields->delete(GETPOST("attrname", 'aZ09'), $elementtype);
|
||||
$attributekey = GETPOST('attrname', 'aZ09');
|
||||
|
||||
$result = $extrafields->delete($attributekey, $elementtype);
|
||||
if ($result >= 0) {
|
||||
setEventMessages($langs->trans("ExtrafieldsDeleted", $attributekey), null, 'mesgs');
|
||||
|
||||
header("Location: ".$_SERVER["PHP_SELF"]);
|
||||
exit;
|
||||
} else {
|
||||
|
||||
@@ -2416,4 +2416,5 @@ AllowAnyPrivileges=If a user A has this permission, he can create a user B with
|
||||
ThisValueCanBeReadBecauseInstanceIsNotInProductionMode=This value can be read because your instance is not set in production mode
|
||||
SeeConfFile=See inside conf.php file on the server
|
||||
ReEncryptDesc=Reencrypt data if not yet encrypted
|
||||
PasswordFieldEncrypted=%s new record have this field been encrypted
|
||||
PasswordFieldEncrypted=%s new record have this field been encrypted
|
||||
ExtrafieldsDeleted=Extrafields %s has been deleted
|
||||
Reference in New Issue
Block a user