While implementing the most recent version in a client's website, which I am upgrading to TYPO3 v12, I encountered a bug that occurs in the pastAction of the CalendarController.
To be more precise, in HDNET\Calendarize\Controller\CalendarController:282 & 283 the following lines of code contain an error:
Both variables $limit & $sort are prepopulated with default values beforehand and then these lines check whether $this->settings['limit'] and $this->settings['sorting'] contain custom values to use, instead of the default ones.
However, in the current state these custom values will not be applied, because the ternary shorthand (?:) will evaluate to the first argument, which is not 'false', which will always be the default value.
Consequently, these arguments need to be switched around for them to work correctly, looking more like this:
While implementing the most recent version in a client's website, which I am upgrading to TYPO3 v12, I encountered a bug that occurs in the pastAction of the CalendarController.
To be more precise, in HDNET\Calendarize\Controller\CalendarController:282 & 283 the following lines of code contain an error:
Both variables $limit & $sort are prepopulated with default values beforehand and then these lines check whether $this->settings['limit'] and $this->settings['sorting'] contain custom values to use, instead of the default ones.
However, in the current state these custom values will not be applied, because the ternary shorthand (?:) will evaluate to the first argument, which is not 'false', which will always be the default value.
Consequently, these arguments need to be switched around for them to work correctly, looking more like this: