Skip to content

Commit

Permalink
Fix #1063 SELECT list is not in GROUP BY in getModuleListByInstance
Browse files Browse the repository at this point in the history
  • Loading branch information
kijin committed Oct 10, 2018
1 parent d9178e9 commit c53e956
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion modules/menu/menu.admin.model.php
Expand Up @@ -405,7 +405,7 @@ function getModuleListInSitemap($site_srl = 0)
{
foreach($output->data as $value)
{
if($value->instanceCount > 1)
if($value->instanceCount >= 1)
{
$moduleList[] = $value->module;
}
Expand Down
4 changes: 2 additions & 2 deletions modules/module/queries/getModuleListByInstance.xml
Expand Up @@ -3,8 +3,8 @@
<table name="modules" />
</tables>
<columns>
<column name="*" />
<column name="count(module_srl)" alias="instanceCount" />
<column name="module" />
<column name="count(*)" alias="instanceCount" />
</columns>
<conditions>
<condition operation="equal" column="site_srl" var="site_srl" filter="number" />
Expand Down

0 comments on commit c53e956

Please sign in to comment.