Преглед изворни кода

Fix disallow reserved values for field name

Laurent Destailleur пре 4 година
родитељ
комит
92dc0d28ce
1 измењених фајлова са 1 додато и 1 уклоњено
  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
 		// Check reserved keyword with more than 3 characters
 		if (!$error) {
 		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++;
 				$error++;
 				$langs->load("errors");
 				$langs->load("errors");
 				$mesg[] = $langs->trans("ErrorReservedKeyword", GETPOST('attrname', 'aZ09'));
 				$mesg[] = $langs->trans("ErrorReservedKeyword", GETPOST('attrname', 'aZ09'));