2
0
forked from Wavyzz/dolibarr
This commit is contained in:
Christophe Battarel
2021-06-29 15:52:50 +02:00
parent d423e47d3b
commit c8f55907eb
2 changed files with 5 additions and 7 deletions

View File

@@ -8799,9 +8799,9 @@ class Form
// Use select2 selector
if (!empty($conf->use_javascript_ajax)) {
include_once DOL_DOCUMENT_ROOT.'/core/lib/ajax.lib.php';
$comboenhancement = ajax_combobox($htmlname, '', 0, $forcefocus);
$out .= $comboenhancement;
$morecss = 'minwidth200imp maxwidth500';
$comboenhancement = ajax_combobox($htmlname, '', 0, $forcefocus);
$out .= $comboenhancement;
$morecss = 'minwidth200imp maxwidth500';
}
if (empty($option_only)) {

View File

@@ -565,11 +565,9 @@ if ($action == 'confirm_generateinter') {
if ($interToUse) {
$tmpinter->fetch($interToUse);
}
else {
} else {
$result = $tmpinter->create($user);
if ($result <= 0)
{
if ($result <= 0) {
$error++;
setEventMessages($tmpinter->error, $tmpinter->errors, 'errors');
}