Skip to content

Commit

Permalink
Add support for titleInBrowser accessor in browsers
Browse files Browse the repository at this point in the history
  • Loading branch information
joyceverheije committed Aug 31, 2023
1 parent 02ac019 commit ab8635f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Services/Listings/TableColumns.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function getArrayForModelBrowser(TwillModelContract $model, TableDataCont
}

$data['id'] = $model->{$tableDataContext->identifierColumn};
$data['name'] = $model->{$tableDataContext->titleColumnKey};
$data['name'] = $model->titleInBrowser ?? $model->{$tableDataContext->titleColumnKey};
$data['edit'] = $editUrl ?? null;
$data['endpointType'] = $tableDataContext->endpointType;
$data['repeaterFields'] = $tableDataContext->repeaterFields;
Expand Down

0 comments on commit ab8635f

Please sign in to comment.