Skip to content

Commit

Permalink
FIX Default value was not set
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Oct 12, 2017
1 parent 6497ca5 commit 86f7add
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions htdocs/societe/rib.php
Expand Up @@ -571,6 +571,7 @@

include_once DOL_DOCUMENT_ROOT.'/core/modules/bank/modules_bank.php';
$modellist=ModeleBankAccountDoc::liste_modeles($db);

$out = '';
if (is_array($modellist) && count($modellist))
{
Expand All @@ -585,6 +586,8 @@
$arraykeys=array_keys($modellist);
$modelselected=$arraykeys[0];
}
if (! empty($conf->global->BANKADDON_PDF)) $modelselected = $conf->global->BANKADDON_PDF;

$out.= $form->selectarray('modelrib'.$rib->id, $modellist, $modelselected, $showempty, 0, 0, '', 0, 0, 0, '', 'minwidth100');
$out.= ajax_combobox('modelrib'.$rib->id);

Expand Down

0 comments on commit 86f7add

Please sign in to comment.