Skip to content

Commit

Permalink
Update UsesResourceLock.php
Browse files Browse the repository at this point in the history
Make it work with FilamentPHP 3.2.65
  • Loading branch information
DariusIII authored Apr 12, 2024
1 parent 43278f1 commit ef346c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Resources/Pages/Concerns/UsesResourceLock.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -78,7 +78,7 @@ public function save(bool $shouldRedirect = true): void
}
}

parent::save($shouldRedirect);
parent::save($shouldRedirect, $shouldSendSavedNotification);
}

public function getResourceLockOwner(): void
Expand Down

0 comments on commit ef346c0

Please sign in to comment.