Skip to content

Commit

Permalink
Merge pull request VentureCraft#2 from Chaitali1223/patch-2
Browse files Browse the repository at this point in the history
AutoAccept added for revision creations enabled
  • Loading branch information
dakshhmehta authored Apr 17, 2018
2 parents 394d9e0 + 486c897 commit 5c2a07f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Venturecraft/Revisionable/RevisionableTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,8 @@ public function postCreate()
'user_id' => $this->getSystemUserId(),
'created_at' => new \DateTime(),
'updated_at' => new \DateTime(),
'accepted_at' => (($this->autoAccept == false) ? null : new \DateTime())

);

$revision = new Revision;
Expand Down

0 comments on commit 5c2a07f

Please sign in to comment.