Explorar o código

Fix : remove duplicate code and fix #22176

Maxime Kohlhaas %!s(int64=2) %!d(string=hai) anos
pai
achega
7e1a37c138
Modificáronse 1 ficheiros con 1 adicións e 10 borrados
  1. 1 10
      htdocs/core/modules/modProduct.class.php

+ 1 - 10
htdocs/core/modules/modProduct.class.php

@@ -650,16 +650,7 @@ class modProduct extends DolibarrModules
 		}
 		// End add extra fields
 		$this->import_fieldshidden_array[$r] = array('extra.fk_object'=>'lastrowid-'.MAIN_DB_PREFIX.'product'); // aliastable.field => ('user->id' or 'lastrowid-'.tableparent)
-		$this->import_regex_array[$r] = array(
-			'p.ref'=>'[^ ]',
-			'p.price_base_type' => 'HT|TTC',
-			'p.tosell'=>'^[0|1]$',
-			'p.tobuy'=>'^[0|1]$',
-			'p.fk_product_type'=>'^[0|1]$',
-			'p.datec'=>'^[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9]$',
-			'p.recuperableonly' => '^[0|1]$',
-			'p.finished' => '^[0|1]$'
-		);
+
 		// field order as per structure of table llx_product
 		$import_sample = array(
 			'p.ref' => "ref:PREF123456",