Skip to content
This repository was archived by the owner on Aug 15, 2023. It is now read-only.

Commit 12181e0

Browse files
committed
[TASK] Add cruser_id to new sysnews
If a news is created, the field cruser_id should be filled with the uid of the cli user.
1 parent e600fac commit 12181e0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Classes/Service/SiteApiService.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ public function createSysNews($header, $text) {
6464
'content' => $text,
6565
'tstamp' => $GLOBALS['EXEC_TIME'],
6666
'crdate' => $GLOBALS['EXEC_TIME'],
67+
'cruser_id' => $GLOBALS['BE_USER']->user['uid']
6768
));
6869
}
6970

0 commit comments

Comments
 (0)