| @@ -35,8 +35,9 @@ | ||
| 35 | 35 | } |
| 36 | 36 | |
| 37 | 37 | private function prepareRule(object $rule): object |
| 38 | 38 | { |
| 39 | + //We have a rule from the database, let's prepare it to be displayed nicely | |
| 39 | 40 | $columns = ['executed_on', 'action_message', 'action_user']; |
| 40 | 41 | foreach ($columns as $oneColumn) { |
| 41 | 42 | if (!empty($rule->$oneColumn)) { |
| 42 | 43 | $rule->$oneColumn = json_decode($rule->$oneColumn, true); |