Skip to content

Commit a06eff5

Browse files
authored
Fix undoActivate
1 parent 504bbd7 commit a06eff5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Traits/Classic/HasActiveFlagHelpers.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ public function activate(): void
4040

4141
public function undoActivate(): void
4242
{
43-
$this->save();
4443
$this->setAttribute('is_active', false);
44+
$this->save();
4545

4646
$this->fireModelEvent('activatedUndone', false);
4747
}

0 commit comments

Comments
 (0)