We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 917cd38 + 6c5883e commit 18839b3Copy full SHA for 18839b3
Model/ResourceModel/Post/Collection.php
@@ -354,9 +354,9 @@ public function addCategoryFilter($category)
354
public function addArchiveFilter($year, $month)
355
{
356
$this->getSelect()
357
- ->where('YEAR(publish_time) = ?', $year);
+ ->where('YEAR(main_table.publish_time) = ?', $year);
358
if ($month) {
359
- $this->getSelect()->where('MONTH(publish_time) = ?', $month);
+ $this->getSelect()->where('MONTH(main_table.publish_time) = ?', $month);
360
}
361
362
return $this;
0 commit comments