This commit is contained in:
Laurent Destailleur 2020-11-22 01:26:58 +01:00
parent 6ac1f98ed0
commit e5e320fd90
2 changed files with 5 additions and 4 deletions

View File

@ -1668,13 +1668,11 @@ function dol_banner_tab($object, $paramid, $morehtml = '', $shownav = 1, $fieldi
$phototoshow .= '</div>';
}
}
} elseif (!$phototoshow)
{
} elseif (!$phototoshow) {
$phototoshow .= $form->showphoto($modulepart, $object, 0, 0, 0, 'photoref', 'small', 1, 0, $maxvisiblephotos);
}
if ($phototoshow)
{
if ($phototoshow) {
$morehtmlleft .= '<div class="floatleft inline-block valignmiddle divphotoref">';
$morehtmlleft .= $phototoshow;
$morehtmlleft .= '</div>';

View File

@ -40,6 +40,7 @@ if (!empty($conf->salaries->enabled)) require_once DOL_DOCUMENT_ROOT.'/salaries/
$langs->loadLangs(array('companies', 'commercial', 'banks', 'bills', 'trips', 'holiday', 'salaries'));
$id = GETPOST('id', 'int');
$ref = GETPOST('ref', 'alphanohtml');
$bankid = GETPOST('bankid', 'int');
$action = GETPOST("action", 'alpha');
$cancel = GETPOST('cancel', 'alpha');
@ -217,6 +218,8 @@ if ($action == 'setdefault_range') {
* View
*/
$form = new Form($db);
$childids = $user->getAllChildIds(1);
llxHeader(null, $langs->trans("BankAccounts"));