fix user dashboard activity

This commit is contained in:
Jean-Christian Paul Denis 2023-04-23 17:18:51 +02:00
parent 686bf423cd
commit 3904150146
Signed by: JcDenis
GPG Key ID: 1B5B8C5B90B6C951

View File

@ -210,7 +210,7 @@ class ActivityBehaviors
__('updating user preference'), __('updating user preference'),
__('"%s" user preference has been updated'), __('"%s" user preference has been updated'),
'adminAfterDashboardOptionsUpdate', 'adminAfterDashboardOptionsUpdate',
[self::class, 'userPreference'] [self::class, 'userOption']
)); ));
// from BEHAVIOR adminBeforeUserDelete in admin/users.php // from BEHAVIOR adminBeforeUserDelete in admin/users.php
@ -449,6 +449,11 @@ class ActivityBehaviors
} }
public static function userPreference(Cursor $cur, string $user_id): void public static function userPreference(Cursor $cur, string $user_id): void
{
self::userOption($user_id);
}
public static function userOption(string $user_id): void
{ {
$user = dcCore::app()->getUser($user_id); $user = dcCore::app()->getUser($user_id);
if ($user->isEmpty()) { if ($user->isEmpty()) {