Skip to content

Commit

Permalink
term controller
Browse files Browse the repository at this point in the history
  • Loading branch information
edalzell committed Dec 13, 2024
1 parent 5b26aa1 commit 9b5c6e2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Http/Controllers/CP/Taxonomies/TermsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,9 @@ public function update(Request $request, $taxonomy, $term, $site)
->makeWorkingCopy()
->user(User::current())
->save();

// have to save in case there are non-revisable fields
$term = tap($term->fromWorkingCopy())->save();
} else {
if (! $term->revisionsEnabled()) {
$term->published($request->published);
Expand Down

0 comments on commit 9b5c6e2

Please sign in to comment.