Skip to content

Commit

Permalink
Merge pull request #680 from exceedone/hotfix
Browse files Browse the repository at this point in the history
Bug fix patch_form_column_relation
  • Loading branch information
hirossyi-exc committed Jun 23, 2020
2 parents 5ae5129 + 0c8a224 commit 433a666
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Console/PatchDataCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -1058,7 +1058,7 @@ protected function patchFormColumnRelation()
// get relation columns.
$relationColumn = collect(Model\Linkage::getSelectTableLinkages($custom_column->custom_table_cache, false))
->filter(function ($c) use ($custom_column) {
return $c->searchType != Enums\SearchType::MANY_TO_MANY && $c->child_column->id == $custom_column->id;
return $c['searchType'] != Enums\SearchType::MANY_TO_MANY && $c['child_column']->id == $custom_column->id;
})->first();

if (!isset($relationColumn)) {
Expand Down

0 comments on commit 433a666

Please sign in to comment.