Skip to content

Commit

Permalink
Merge pull request #882 from UN-OCHA/RW-1071
Browse files Browse the repository at this point in the history
[RW-1071] Fix revision user/time for terms
  • Loading branch information
orakili authored Sep 6, 2024
2 parents e57a436 + e09e4b8 commit 68eb71a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ public function actions(array $form, FormStateInterface $form_state) {
* {@inheritdoc}
*/
public function save(array $form, FormStateInterface $form_state) {
$this->entity->setRevisionUserId($this->currentUser()->id());
$this->entity->setRevisionCreationTime(time());
$this->entity->setRevisionLogMessage(strtr('!bundle profile update', [
'!bundle' => $this->getBundleLabel(),
]));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ public function actions(array $form, FormStateInterface $form_state) {
* {@inheritdoc}
*/
public function save(array $form, FormStateInterface $form_state) {
$this->entity->setRevisionUserId($this->currentUser()->id());
$this->entity->setRevisionCreationTime(time());
$this->entity->setRevisionLogMessage('User posting rights update');
return parent::save($form, $form_state);
}
Expand Down

0 comments on commit 68eb71a

Please sign in to comment.