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.
1 parent d1d72f7 commit 6d00d69Copy full SHA for 6d00d69
Model/ResourceModel/Post/Collection.php
@@ -352,10 +352,10 @@ public function addCategoryFilter($category)
352
*/
353
public function addArchiveFilter($year, $month)
354
{
355
- $this->getSelect()
356
- ->where('YEAR(publish_time) = ?', $year);
+ $this->getSelect()
+ ->where('YEAR(main_table.publish_time) = ?', $year);
357
if ($month) {
358
- $this->getSelect()->where('MONTH(publish_time) = ?', $month);
+ $this->getSelect()->where('MONTH(main_table.publish_time) = ?', $month);
359
}
360
361
return $this;
0 commit comments