diff --git a/README.md b/README.md index d0d3f63d..5092e982 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/src/models/behaviors/TimestampPublishedBehavior.php b/src/models/behaviors/TimestampPublishedBehavior.php index 0eb38441..c17a2f12 100644 --- a/src/models/behaviors/TimestampPublishedBehavior.php +++ b/src/models/behaviors/TimestampPublishedBehavior.php @@ -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 {