Skip to content

Commit

Permalink
fix detail view for log (#654)
Browse files Browse the repository at this point in the history
* fix detail view for log

* changelog
  • Loading branch information
nadar authored Aug 24, 2021
1 parent c296140 commit 7602bf1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ In order to read more about upgrading and BC breaks have a look at the [UPGRADE

## 4.1.0

+ [#654](https://github.com/luyadev/luya-module-admin/pull/654) Fix issue with ngrest detail view when json is not an array.
+ [#496](https://github.com/luyadev/luya-module-admin/issues/496) Added default color for link elements in NgRest CRUD table.

## 4.0.0 (27. July 2021)
Expand Down
4 changes: 2 additions & 2 deletions src/models/NgrestLog.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,13 +162,13 @@ public function ngRestActiveWindows()
[
'attribute' => 'attributes_json',
'value' => function($model) {
return VarDumper::dumpAsString(ArrayHelper::coverSensitiveValues($model->attributes_json));
return is_array($model->attributes_json) ? VarDumper::dumpAsString(ArrayHelper::coverSensitiveValues($model->attributes_json)) : $model->attributes_json;
}
],
[
'attribute' => 'attributes_diff_json',
'value' => function($model) {
return VarDumper::dumpAsString(ArrayHelper::coverSensitiveValues($model->attributes_diff_json));
return is_array($model->attributes_diff_json) ? VarDumper::dumpAsString(ArrayHelper::coverSensitiveValues($model->attributes_diff_json)) : $model->attributes_diff_json;
}
],
'table_name:raw',
Expand Down

0 comments on commit 7602bf1

Please sign in to comment.