Skip to content

Commit

Permalink
Merge pull request #1537 from exceedone/hotfixfeature/issue_1494
Browse files Browse the repository at this point in the history
KJ: #1494 Fix pagination error in child tables on detail screen
  • Loading branch information
KajitoriAdmin authored Nov 22, 2024
2 parents 7b832d8 + 4b4d5f6 commit 71f64ce
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/DataItems/Show/DefaultShow.php
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,8 @@ protected function setChildBlockBox($row)
$classname = getModelName($target_table);
$grid = new Grid(new $classname());
$grid->setTitle($block_label);
$grid->setName($target_table->table_name);
$grid->model()->setSortName($target_table->table_name . '_sort');

// one to many
if ($custom_form_block->form_block_type == FormBlockType::ONE_TO_MANY) {
Expand Down

0 comments on commit 71f64ce

Please sign in to comment.