From 82b3b5612d0ba37ab0b79811789679cfe2597650 Mon Sep 17 00:00:00 2001 From: Tim Otte Date: Tue, 29 Sep 2020 12:19:19 +0200 Subject: [PATCH] Update extrafields.class.php That change should not be included in the PR --- htdocs/core/class/extrafields.class.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/htdocs/core/class/extrafields.class.php b/htdocs/core/class/extrafields.class.php index dcac977566b..b2f8905aba9 100644 --- a/htdocs/core/class/extrafields.class.php +++ b/htdocs/core/class/extrafields.class.php @@ -2097,9 +2097,6 @@ class ExtraFields if (!GETPOSTISSET($keysuffix."options_".$key.$keyprefix)) continue; // Value was not provided, we should not set it. $value_arr = GETPOST($keysuffix."options_".$key.$keyprefix); $value_key = price2num($value_arr); - } elseif (in_array($key_type, array('text'))) { - if (!GETPOSTISSET($keysuffix."options_".$key.$keyprefix)) continue; // Value was not provided, we should not set it. - $value_key = GETPOST($keysuffix."options_".$key.$keyprefix, 'alpha'); } else { if (!GETPOSTISSET($keysuffix."options_".$key.$keyprefix)) continue; // Value was not provided, we should not set it. $value_key = GETPOST($keysuffix."options_".$key.$keyprefix);