fix certificates button on AngelTypes_view, add id to location change log

This commit is contained in:
Xu 2024-03-29 09:14:17 +01:00 committed by Igor Scheller
parent 6e76843db4
commit e6251256b3
2 changed files with 12 additions and 3 deletions

View File

@ -202,13 +202,21 @@ function AngelType_view_buttons(
$user_license,
$user
) {
if (config('driving_license_enabled') && $angeltype->requires_driver_license) {
if (
config('driving_license_enabled')
&& $angeltype->requires_driver_license
&& $user_angeltype
) {
$buttons[] = button(
url('/settings/certificates'),
icon('person-vcard') . __('My driving license')
);
}
if (config('ifsg_enabled') && $angeltype->requires_ifsg_certificate) {
if (
config('ifsg_enabled')
&& $angeltype->requires_ifsg_certificate
&& $user_angeltype
) {
$buttons[] = button(
url('/settings/certificates'),
icon('card-checklist') . __('angeltype.ifsg.own')

View File

@ -117,8 +117,9 @@ class LocationsController extends BaseController
}
$this->log->info(
'Updated location "{name}": {description} {dect} {map_url} {angels}',
'Updated location "{name}" ({id}): {description} {dect} {map_url} {angels}',
[
'id' => $location->id,
'name' => $location->name,
'description' => $location->description,
'dect' => $location->dect,