fix: [metaTemplateDirectory:index] No static call anymore
parent
cc5914cccc
commit
8e2718a0ae
|
@ -47,7 +47,7 @@ echo $this->element('genericElements/IndexTable/index_table', [
|
||||||
'data_path' => 'meta_template.id',
|
'data_path' => 'meta_template.id',
|
||||||
'element' => 'function',
|
'element' => 'function',
|
||||||
'function' => function($row, $viewContext) {
|
'function' => function($row, $viewContext) {
|
||||||
return $viewContext->Bootstrap::node('a', [
|
return $viewContext->Bootstrap->node('a', [
|
||||||
'href' => h($baseurl . '/metaTemplates/view/' . $row->meta_template->id ?? ''),
|
'href' => h($baseurl . '/metaTemplates/view/' . $row->meta_template->id ?? ''),
|
||||||
], !empty($row->meta_template->name) ? (sprintf('%s (v%s)', h($row->meta_template->name), h($row->meta_template->version))) :'');
|
], !empty($row->meta_template->name) ? (sprintf('%s (v%s)', h($row->meta_template->name), h($row->meta_template->version))) :'');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue