Added notesFormatter

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2023-07-13 13:14:10 +01:00
parent 5d1f294f0e
commit 016502f637
2 changed files with 2 additions and 1 deletions

View file

@ -63,7 +63,7 @@ class AssetModelsTransformer
'default_fieldset_values' => $default_field_values,
'eol' => ($assetmodel->eol > 0) ? $assetmodel->eol.' months' : 'None',
'requestable' => ($assetmodel->requestable == '1') ? true : false,
'notes' => nl2br(Helper::parseEscapedMarkedownInline($assetmodel->notes)),
'notes' => Helper::parseEscapedMarkedownInline($assetmodel->notes),
'created_at' => Helper::getFormattedDateObject($assetmodel->created_at, 'datetime'),
'updated_at' => Helper::getFormattedDateObject($assetmodel->updated_at, 'datetime'),
'deleted_at' => Helper::getFormattedDateObject($assetmodel->deleted_at, 'datetime'),

View file

@ -123,6 +123,7 @@ class AssetModelPresenter extends Presenter
'switchable' => true,
'title' => trans('general.notes'),
'visible' => false,
'formatter' => 'notesFormatter',
],
[
'field' => 'created_at',