diff --git a/resources/views/formfields/relationship.blade.php b/resources/views/formfields/relationship.blade.php index 8d341a1305..4f7710c4ca 100644 --- a/resources/views/formfields/relationship.blade.php +++ b/resources/views/formfields/relationship.blade.php @@ -178,7 +178,7 @@ class="form-control select2-ajax @if(isset($options->taggable) && $options->tagg $options->related_pivot_key ?? null, $options->parent_key ?? null, $options->key - )->pluck($options->key); + )->pluck($options->table.'.'.$options->key); } $selected_keys = old($relationshipField, $selected_keys); $selected_values = app($options->model)->whereIn($options->key, $selected_keys)->pluck($options->label, $options->key);