update listing, handle fields with or without callbacks or callbacks only

This commit is contained in:
envoyr
2022-02-28 13:16:44 +01:00
parent 8ff6e71729
commit 8f6f85ea8e
25 changed files with 87 additions and 79 deletions

View File

@@ -26,12 +26,12 @@ return [
'c.description' => [
'label' => $lng['cron']['description'],
'field' => 'desc_lng_key',
'format_callback' => [Text::class, 'crondesc']
'callback' => [Text::class, 'crondesc']
],
'c.lastrun' => [
'label' => $lng['cron']['lastrun'],
'field' => 'lastrun',
'format_callback' => [Text::class, 'timestamp']
'callback' => [Text::class, 'timestamp']
],
'c.interval' => [
'label' => $lng['cron']['interval'],
@@ -40,7 +40,7 @@ return [
'c.isactive' => [
'label' => $lng['cron']['isactive'],
'field' => 'isactive',
'format_callback' => [Text::class, 'boolean']
'callback' => [Text::class, 'boolean']
],
],
'visible_columns' => Listing::getVisibleColumnsForListing('cron_list', [