Skip to content

Commit 6aef808

Browse files
committed
Don't include the taxonomy's injected cascading data on the publish form
1 parent 54df2ac commit 6aef808

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,9 +286,15 @@ protected function taxonomyToArray($taxonomy)
286286

287287
protected function extractFromFields($term, $blueprint)
288288
{
289+
// The values should only be data merged with the origin data.
290+
// We don't want injected taxonomy values, which $term->values() would have given us.
291+
$values = $term->inDefaultLocale()->data()->merge(
292+
$term->data()
293+
);
294+
289295
$fields = $blueprint
290296
->fields()
291-
->addValues($term->values()->all())
297+
->addValues($values->all())
292298
->preProcess();
293299

294300
$values = $fields->values()->merge([

0 commit comments

Comments
 (0)