From bd8faae9c1e70d7e9941df22ecfd9c53e2bb91ee Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Fri, 20 Nov 2020 15:59:50 +0100 Subject: [PATCH] FIX missing "enabled" value of extrafield after update --- htdocs/core/actions_extrafields.inc.php | 2 +- htdocs/core/tpl/admin_extrafields_edit.tpl.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/htdocs/core/actions_extrafields.inc.php b/htdocs/core/actions_extrafields.inc.php index c8c4f4db5d0..9ad3ce1e92e 100644 --- a/htdocs/core/actions_extrafields.inc.php +++ b/htdocs/core/actions_extrafields.inc.php @@ -338,7 +338,7 @@ if ($action == 'update') GETPOST('computed_value', 'alpha'), (GETPOST('entitycurrentorall', 'alpha') ? 0 : ''), GETPOST('langfile'), - 1, + GETPOST('enabled', 'alpha'), (GETPOST('totalizable', 'alpha') ? 1 : 0), GETPOST('printable', 'alpha') ); diff --git a/htdocs/core/tpl/admin_extrafields_edit.tpl.php b/htdocs/core/tpl/admin_extrafields_edit.tpl.php index 5c1680d9ecb..8f92861d089 100644 --- a/htdocs/core/tpl/admin_extrafields_edit.tpl.php +++ b/htdocs/core/tpl/admin_extrafields_edit.tpl.php @@ -145,6 +145,7 @@ $listofexamplesforlink = 'Societe:societe/class/societe.class.php
Contact:con +