Selaa lähdekoodia

Merge pull request #22285 from javieralapps4up/patch-3

Update create.php
Laurent Destailleur 2 vuotta sitten
vanhempi
commit
99c146652d
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      htdocs/compta/prelevement/create.php

+ 2 - 2
htdocs/compta/prelevement/create.php

@@ -286,8 +286,8 @@ if ($nb) {
 
 			if ($type != 'bank-transfer') {
 				print '<select name="format">';
-				print '<option value="FRST"'.(GETPOST('format', 'aZ09') == 'FRST' ? ' selected="selected"' : '').'>'.$langs->trans('SEPAFRST').'</option>';
-				print '<option value="RCUR"'.(GETPOST('format', 'aZ09') == 'RCUR' ? ' selected="selected"' : '').'>'.$langs->trans('SEPARCUR').'</option>';
+				print '<option value="FRST"'.($format == 'FRST' ? ' selected="selected"' : '').'>'.$langs->trans('SEPAFRST').'</option>';
+				print '<option value="RCUR"'.($format == 'RCUR' ? ' selected="selected"' : '').'>'.$langs->trans('SEPARCUR').'</option>';
 				print '</select>';
 			}
 			print '<input type="submit" class="butAction" value="'.$title.'"/>';