We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8ef8e76 + 6cbdefe commit 33263f5Copy full SHA for 33263f5
app/Models/Actionlog.php
@@ -69,8 +69,8 @@ class Actionlog extends SnipeModel
69
*/
70
protected $searchableRelations = [
71
'company' => ['name'],
72
- 'adminuser' => ['first_name','last_name','username', 'email'],
73
- 'user' => ['first_name','last_name','username', 'email'],
+ 'adminuser' => ['first_name','last_name','username', 'email', 'employee_num'],
+ 'user' => ['first_name','last_name','username', 'email', 'employee_num'],
74
'assets' => ['asset_tag','name', 'serial', 'order_number', 'notes', 'purchase_date'],
75
'assets.model' => ['name', 'model_number', 'eol', 'notes'],
76
'assets.model.category' => ['name', 'notes'],
@@ -113,6 +113,11 @@ public static function boot()
113
} elseif (auth()->user() && auth()->user()->company) {
114
$actionlog->company_id = auth()->user()->company_id;
115
}
116
+
117
+ if ($actionlog->action_date == '') {
118
+ $actionlog->action_date = Carbon::now();
119
+ }
120
121
});
122
123
0 commit comments