Skip to content

Commit ff8db53

Browse files
authored
[5.x] Fix term reference updates after slug change (#11058)
1 parent 6e14df6 commit ff8db53

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Http/Controllers/CP/Taxonomies/TermsController.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,8 @@ public function update(Request $request, $taxonomy, $term, $site)
168168

169169
$term = $term->fromWorkingCopy();
170170

171+
$term->term()->syncOriginal();
172+
171173
$fields = $term->blueprint()->fields()->addValues($request->except('id'));
172174

173175
$fields->validate([

0 commit comments

Comments
 (0)