Skip to content

Commit

Permalink
use DISTINCT from getFormListquery()
Browse files Browse the repository at this point in the history
  • Loading branch information
stonebuzz committed Aug 17, 2023
1 parent 9bd806e commit 9e1a612
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/form.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -2001,7 +2001,6 @@ public function showForCentral() {
}

$form_query = PluginFormcreatorForm::getFormListQuery();
$form_query['DISTINCT'] = true;
$form_query['SELECT'] = [
$form_table => ['id', 'name', 'description', $formCategoryFk],
];
Expand Down Expand Up @@ -2677,6 +2676,7 @@ public static function getFormListQuery() {

$entityRestrict = $dbUtils->getEntitiesRestrictCriteria($formTable, '', '', true, false, (new PluginFormcreatorForm())->maybeRecursive());
$condition = [
'DISTINCT' => true,
'FROM' => $formTable,
'LEFT JOIN' => [
$formLanguageTable => [
Expand Down

0 comments on commit 9e1a612

Please sign in to comment.