From ef346c0d35f873b7a525f46e009047395f6cddc5 Mon Sep 17 00:00:00 2001 From: DariusIII Date: Fri, 12 Apr 2024 10:33:02 +0200 Subject: [PATCH] Update UsesResourceLock.php Make it work with FilamentPHP 3.2.65 --- src/Resources/Pages/Concerns/UsesResourceLock.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Resources/Pages/Concerns/UsesResourceLock.php b/src/Resources/Pages/Concerns/UsesResourceLock.php index 6d0d1ca..882e110 100644 --- a/src/Resources/Pages/Concerns/UsesResourceLock.php +++ b/src/Resources/Pages/Concerns/UsesResourceLock.php @@ -66,7 +66,7 @@ public function resourceLockObserverUnlock() * to make any changes based on the resource lock that is currently in place. * This is just an extra fail-safe, but can be turnoff in the config file. */ - public function save(bool $shouldRedirect = true): void + public function save(bool $shouldRedirect = true, bool $shouldSendSavedNotification = true): void { if (config('resource-lock.check_locks_before_saving', true)) { $this->record->refresh(); @@ -78,7 +78,7 @@ public function save(bool $shouldRedirect = true): void } } - parent::save($shouldRedirect); + parent::save($shouldRedirect, $shouldSendSavedNotification); } public function getResourceLockOwner(): void