Skip to content

Commit ab8635f

Browse files
committed
Add support for titleInBrowser accessor in browsers
1 parent 02ac019 commit ab8635f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Services/Listings/TableColumns.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public function getArrayForModelBrowser(TwillModelContract $model, TableDataCont
3131
}
3232

3333
$data['id'] = $model->{$tableDataContext->identifierColumn};
34-
$data['name'] = $model->{$tableDataContext->titleColumnKey};
34+
$data['name'] = $model->titleInBrowser ?? $model->{$tableDataContext->titleColumnKey};
3535
$data['edit'] = $editUrl ?? null;
3636
$data['endpointType'] = $tableDataContext->endpointType;
3737
$data['repeaterFields'] = $tableDataContext->repeaterFields;

0 commit comments

Comments
 (0)