Skip to content

Commit

Permalink
[TASK] Added fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
hojalatheef committed Dec 3, 2024
1 parent 1e072cb commit 7ad2898
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -146,10 +146,7 @@ protected function initialize(): void
$this->pageRenderer->addInlineSetting('FormEngine', 'formName', 'tx_scheduler_form');
$this->pageRenderer->addInlineSetting('FormEngine', 'backPath', '');
$this->pageRenderer->loadJavaScriptModule(
'TYPO3/CMS/Backend/FormEngine',
'function(FormEngine) {
FormEngine.browserUrl = ' . GeneralUtility::quoteJSvalue((string)$this->uriBuilder->buildUriFromRoute('wizard_element_browser')) . ';
}',
'TYPO3/CMS/Backend/FormEngine'
);
}

Expand Down
5 changes: 1 addition & 4 deletions Classes/Task/OpenWeatherMapTaskAdditionalFieldProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,7 @@ public function getAdditionalFields(
$this->pageRenderer->addInlineSetting('FormEngine', 'formName', 'tx_scheduler_form');
$this->pageRenderer->addInlineSetting('FormEngine', 'backPath', '');
$this->pageRenderer->loadJavaScriptModule(
'TYPO3/CMS/Backend/FormEngine',
'function(FormEngine) {
FormEngine.browserUrl = ' . GeneralUtility::quoteJSvalue((string)$this->uriBuilder->buildUriFromRoute('wizard_element_browser')) . ';
}',
'TYPO3/CMS/Backend/FormEngine'
);

foreach ($this->insertFields as $fieldID) {
Expand Down
3 changes: 3 additions & 0 deletions Classes/ViewHelpers/ConvertMetricToImperialViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ public function initializeArguments(): void
);
}

/**
* @param array<string, mixed> $arguments
*/
public static function renderStatic(
array $arguments,
\Closure $renderChildrenClosure,
Expand Down

0 comments on commit 7ad2898

Please sign in to comment.