mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-11 22:07:29 -08:00
Added notesFormatter
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
5d1f294f0e
commit
016502f637
|
@ -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'),
|
||||
|
|
|
@ -123,6 +123,7 @@ class AssetModelPresenter extends Presenter
|
|||
'switchable' => true,
|
||||
'title' => trans('general.notes'),
|
||||
'visible' => false,
|
||||
'formatter' => 'notesFormatter',
|
||||
],
|
||||
[
|
||||
'field' => 'created_at',
|
||||
|
|
Loading…
Reference in a new issue