Qual: Fix false phan positive in export.php (#36147)
* Qual: Type cast for field parameter # Qual: Type cast for field parameter Cast to string to ensure the value is not interpreted as a potential array. * Qual: Backport typing hint to fix typing in 20.0
This commit is contained in:
parent
25b1004c7b
commit
093bbcdec2
2 changed files with 4 additions and 1 deletions
|
|
@ -70,6 +70,9 @@ class Export
|
|||
public $array_export_TypeFields = array(); // Tableau des listes de champ+Type de filtre
|
||||
public $array_export_FilterValue = array(); // Tableau des listes de champ+Valeur a filtrer
|
||||
public $array_export_entities = array(); // Tableau des listes de champ+alias a exporter
|
||||
/**
|
||||
* @var array<int,array<string,string>>
|
||||
*/
|
||||
public $array_export_dependencies = array(); // array of list of entities that must take care of the DISTINCT if a field is added into export
|
||||
public $array_export_special = array(); // array of special operations to do on field
|
||||
public $array_export_examplevalues = array(); // array with examples for fields
|
||||
|
|
|
|||
|
|
@ -146,7 +146,7 @@ $step = GETPOSTINT("step") ? GETPOSTINT("step") : 1;
|
|||
$export_name = GETPOST("export_name", "alphanohtml");
|
||||
$hexa = GETPOST("hexa", "alpha");
|
||||
$exportmodelid = GETPOSTINT("exportmodelid");
|
||||
$field = GETPOST("field", "alpha");
|
||||
$field = (string) GETPOST("field", "alpha");
|
||||
|
||||
$objexport = new Export($db);
|
||||
$objexport->load_arrays($user, $datatoexport);
|
||||
|
|
|
|||
Loading…
Reference in a new issue