Skip to content
Browse files

Undo last commit

  • Loading branch information...
2 parents 4ecbf65 + 593e870 commit e3688718baecf70b75cae59505f8f58e38c42463 @bmaland bmaland committed
Showing with 2 additions and 6 deletions.
  1. +2 −6 frog/app/backend/models/Page.php
View
8 frog/app/backend/models/Page.php
@@ -41,12 +41,8 @@ public function beforeInsert()
$this->created_by_id = AuthUser::getId();
$this->created_on = date('Y-m-d H:i:s');
- $this->updated_on = $this->created_on;
- $this->updated_by_id = $this->created_by_id;
-
- if ($this->status_id == Page::STATUS_PUBLISHED) {
- $this->published_on = date('Y-m-d H:i:s');
- }
+ if ($this->status_id == Page::STATUS_PUBLISHED)
+ $this->created_on = date('Y-m-d H:i:s');
return true;
}

0 comments on commit e368871

Please sign in to comment.
Something went wrong with that request. Please try again.