Skip to content

Commit

Permalink
Merge pull request #15 from fritzmg/patch-1
Browse files Browse the repository at this point in the history
Do not mark `auto_item` as used in non-reader modules
  • Loading branch information
doishub authored Aug 28, 2023
2 parents 26a95b9 + 5746ef6 commit fe322bc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion contao/modules/ModuleRecommendationForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ protected function compile(): void
$arrFields['scope'] = [
'name' => 'scope',
'inputType' => 'hidden',
'value' => Input::get('auto_item')
'value' => Input::get('auto_item', false, true)
];
}

Expand Down
2 changes: 1 addition & 1 deletion contao/modules/ModuleRecommendationList.php
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ protected function fetchItems($recommendationArchives, $blnFeatured, $limit, $of
$items = [];

// Get auto item
$autoItem = Input::get('auto_item');
$autoItem = Input::get('auto_item', false, true);

foreach (RecommendationModel::findPublishedByPids($recommendationArchives, $blnFeatured, $limit, $offset, $minRating, ['order'=>$order]) ?? [] as $item)
{
Expand Down

0 comments on commit fe322bc

Please sign in to comment.