fix/finish having history records show correct users for UI-triggered queue jobs...
authorIvan Kohler <ivan@freeside.biz>
Tue, 5 Jun 2018 17:43:34 +0000 (10:43 -0700)
committerIvan Kohler <ivan@freeside.biz>
Tue, 5 Jun 2018 17:43:34 +0000 (10:43 -0700)
FS/FS/Record.pm

index 8512852..9f9b1e2 100644 (file)
@@ -2210,7 +2210,11 @@ sub _h_statement {
   "INSERT INTO h_". $self->table. " ( ".
       join(', ', qw(history_date history_user history_action), @fields ).
     ") VALUES (".
-      join(', ', $time, dbh->quote(getotaker()), dbh->quote($action), @values).
+      join(', ', $time,
+                 dbh->quote($FS::CurrentUser::CurrentUser->username),
+                 dbh->quote($action),
+                 @values
+      ).
     ")"
   ;
 }