Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Undo last commit

  • Loading branch information...
commit e3688718baecf70b75cae59505f8f58e38c42463 2 parents 4ecbf65 + 593e870
@bmaland bmaland authored
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;
}
Please sign in to comment.
Something went wrong with that request. Please try again.