georgringer / news

TYPO3 Extension news
GNU General Public License v2.0
264 stars 358 forks source link

[BUGFIX] Overwrite via tx_news_pi1[overwriteDemand][categories][] broken #2194

Closed kitzberger closed 1 year ago

kitzberger commented 1 year ago

In case the overwriteDemand property 'category' is already an array this'll prevents an type error when calling trimExplode().

We're rendering the Category/List.html as a form with checkboxes:

<input type="checkbox" name="tx_news_pi1[overwriteDemand][categories][]" value="33">
<input type="checkbox" name="tx_news_pi1[overwriteDemand][categories][]" value="34">
<input type="checkbox" name="tx_news_pi1[overwriteDemand][categories][]" value="35">

This used to work with EXT:news 8.6 and got destroyed with a0b7f58f483968f90e7ffbd44dd6a36ad56f5be5 :joy:

Fixes: #2195