Explorar o código

Fix disallow reserved values for field name

Laurent Destailleur %!s(int64=4) %!d(string=hai) anos
pai
achega
92dc0d28ce
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      htdocs/core/actions_extrafields.inc.php

+ 1 - 1
htdocs/core/actions_extrafields.inc.php

@@ -137,7 +137,7 @@ if ($action == 'add') {
 
 		// Check reserved keyword with more than 3 characters
 		if (!$error) {
-			if (in_array(GETPOST('attrname', 'aZ09'), array('and', 'keyword', 'table', 'index', 'integer', 'float', 'double', 'position'))) {
+			if (in_array(GETPOST('attrname', 'aZ09'), array('and', 'keyword', 'table', 'index', 'int', 'integer', 'float', 'double', 'real', 'position'))) {
 				$error++;
 				$langs->load("errors");
 				$mesg[] = $langs->trans("ErrorReservedKeyword", GETPOST('attrname', 'aZ09'));