fix #8436
This commit is contained in:
parent
79af10fc83
commit
3de793d88f
@ -458,6 +458,9 @@ else
|
|||||||
|
|
||||||
// Type
|
// Type
|
||||||
print '<td class="liste_titre">';
|
print '<td class="liste_titre">';
|
||||||
|
if (empty($mysoc->country_id)) {
|
||||||
|
setEventMessages(null, array($langs->trans("ErrorSetACountryFirst"),$langs->trans("CompanyFoundation")),'errors');
|
||||||
|
} else {
|
||||||
$typeleaves=$holidaystatic->getTypes(1,-1);
|
$typeleaves=$holidaystatic->getTypes(1,-1);
|
||||||
$arraytypeleaves=array();
|
$arraytypeleaves=array();
|
||||||
foreach($typeleaves as $key => $val)
|
foreach($typeleaves as $key => $val)
|
||||||
@ -467,6 +470,7 @@ foreach($typeleaves as $key => $val)
|
|||||||
$arraytypeleaves[$val['rowid']]=$labeltoshow;
|
$arraytypeleaves[$val['rowid']]=$labeltoshow;
|
||||||
}
|
}
|
||||||
print $form->selectarray('search_type', $arraytypeleaves, $search_type, 1);
|
print $form->selectarray('search_type', $arraytypeleaves, $search_type, 1);
|
||||||
|
}
|
||||||
print '</td>';
|
print '</td>';
|
||||||
|
|
||||||
// Duration
|
// Duration
|
||||||
@ -521,7 +525,7 @@ if ($id && empty($user->rights->holiday->read_all) && ! in_array($id, $childids)
|
|||||||
$result = 0;
|
$result = 0;
|
||||||
}
|
}
|
||||||
// Lines
|
// Lines
|
||||||
elseif (! empty($holiday->holiday))
|
elseif (! empty($holiday->holiday) && !empty($mysoc->country_id))
|
||||||
{
|
{
|
||||||
$userstatic = new User($db);
|
$userstatic = new User($db);
|
||||||
$approbatorstatic = new User($db);
|
$approbatorstatic = new User($db);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user