Skip to content
Open

dev #123

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
SkeekS CMS (Yii2)
================

1
[![skeeks!](https://cms.skeeks.com/uploads/all/35/fd/33/35fd33aa306823dbaf53a0142d43b3fa.png)](https://cms.skeeks.com)

SkeekS CMS - modern generic content management system based on yii2 php framework.
Expand Down
3 changes: 3 additions & 0 deletions src/models/behaviors/TimestampPublishedBehavior.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ public function init()
*/
protected function getValue($event)
{
if($event->sender->attributes[$this->publishedAtAttribute]){
return $event->sender->attributes[$this->publishedAtAttribute];
}
if ($this->value instanceof Expression) {
return $this->value;
} else {
Expand Down