Debug v17

This commit is contained in:
Laurent Destailleur 2022-12-31 17:14:58 +01:00
parent 2970f039dd
commit 97222603c1
3 changed files with 7 additions and 7 deletions

View File

@ -1731,9 +1731,9 @@ if ($dirins && $action == 'confirm_deleteobject' && $objectname) {
);
$resultko = 0;
foreach ($filetodelete as $filetodelete) {
$resulttmp = dol_delete_file($dir.'/'.$filetodelete, 0, 0, 1);
$resulttmp = dol_delete_file($dir.'/'.$filetodelete.'.back', 0, 0, 1);
foreach ($filetodelete as $tmpfiletodelete) {
$resulttmp = dol_delete_file($dir.'/'.$tmpfiletodelete, 0, 0, 1);
$resulttmp = dol_delete_file($dir.'/'.$tmpfiletodelete.'.back', 0, 0, 1);
if (!$resulttmp) {
$resultko++;
}

View File

@ -420,8 +420,8 @@ if ($conf->global->MAIN_FEATURES_LEVEL >= 2) { // TODO Not used by current code
$location = array();
$location[""] = $langs->trans("NotDefined");
foreach ($locations as $locations) {
$location[$locations->id] = $locations->display_name;
foreach ($locations as $tmplocation) {
$location[$tmplocation->id] = $tmplocation->display_name;
}
print $form->selectarray("STRIPE_LOCATION", $location, getDolGlobalString('STRIPE_LOCATION'));
print '</td></tr>';

View File

@ -219,8 +219,8 @@ if (isModEnabled("banque")) {
$reader = array();
$reader[""] = $langs->trans("NoReader");
foreach ($readers as $readers) {
$reader[$reader->id] = $readers->label.' ('.$readers->status.')';
foreach ($readers as $tmpreader) {
$reader[$tmpreader->id] = $tmpreader->label.' ('.$tmpreader->status.')';
}
print $form->selectarray('CASHDESK_ID_BANKACCOUNT_STRIPETERMINAL'.$terminaltouse, $reader, $conf->global->{'CASHDESK_ID_BANKACCOUNT_STRIPETERMINAL'.$terminaltouse});
print '</td></tr>';