mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-07 16:41:48 +01:00
Fix: Evite mauvais ordre si page de choix ordre export soumise 2 fois.
This commit is contained in:
@@ -118,11 +118,15 @@ class Export
|
||||
$this->array_export_alias[$i]=$module->export_alias_array[$r];
|
||||
|
||||
// Charge fichier lang en rapport
|
||||
foreach($module->getLangFilesArray() as $key)
|
||||
$langtoload=$module->getLangFilesArray();
|
||||
if (is_array($langtoload))
|
||||
{
|
||||
$langs->load($key);
|
||||
foreach($langtoload as $key)
|
||||
{
|
||||
$langs->load($key);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
dolibarr_syslog("Export charg<72> pour le module ".$modulename." en index ".$i.", dataset=".$module->export_code[$r].", nbre de champs=".sizeof($module->export_fields_code[$r]));
|
||||
$i++;
|
||||
}
|
||||
|
||||
@@ -91,9 +91,12 @@ if ($action=='downfield' || $action=='upfield')
|
||||
}
|
||||
}
|
||||
//print("Switch pos=$pos (code=".$_GET["field"].") and newpos=$newpos (code=$newcode)");
|
||||
$array_selected[$_GET["field"]]=$newpos;
|
||||
$array_selected[$newcode]=$pos;
|
||||
$_SESSION["export_selected_fields"]=$array_selected;
|
||||
if ($newcode) // Si newcode trouv<75> (prtoection contre resoumission de page
|
||||
{
|
||||
$array_selected[$_GET["field"]]=$newpos;
|
||||
$array_selected[$newcode]=$pos;
|
||||
$_SESSION["export_selected_fields"]=$array_selected;
|
||||
}
|
||||
}
|
||||
|
||||
if ($step == 1 || $action == 'cleanselect')
|
||||
|
||||
Reference in New Issue
Block a user