Skip to content

Commit

Permalink
Fix for PHPCQ
Browse files Browse the repository at this point in the history
  • Loading branch information
zonky2 committed Nov 20, 2024
1 parent 077dc1d commit ab4ab68
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Contao/View/Contao2BackendView/ContaoWidgetManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ public function renderWidget($property, $ignoreErrors = false, PropertyValueBagI
->set('strDatepicker', $isHideInput ? null : $this->getDatePicker($propInfo->getExtra(), $widget))
// We used the var blnUpdate before.
->set('blnUpdate', false)
->set('strHelp', $isHideInput ? null : $this->generateHelpText($property, $widget))
->set('strHelp', $isHideInput ? '' : $this->generateHelpText($property, $widget))
->set('strId', $widget->id)
->set('isHideInput', $isHideInput)
->set('hiddenName', $widget->name)
Expand Down
3 changes: 3 additions & 0 deletions src/Contao/View/Contao2BackendView/Widget/FileTree.php
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,9 @@ private function renderList(array &$icons, Collection $collection = null, bool $

if (('folder' === $model->type) && $followSubDirs) {
$files = FilesModel::findByPid($uuid);
if (null === $files) {
continue;
}
assert($files instanceof Collection);
$this->renderList($icons, $files);
continue;
Expand Down
2 changes: 1 addition & 1 deletion src/Controller/BackendTreeController.php
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ private function runBackendTree(Request $request)
'title',
StringUtil::specialchars(
$this->getTranslator()->trans(
'treepicker',
'treePicker',
['%table%' => $treeSelector->foreignTable],
'dc-general'
)
Expand Down

0 comments on commit ab4ab68

Please sign in to comment.