itx-informationssysteme / jobapplications

This TYPO3 extension enables you to manage job postings, provides you with an application form and a backend module to manage incoming applications.
https://extensions.typo3.org/extension/jobapplications/
Other
7 stars 10 forks source link

Application submit with no required files results in an TYPO3 Exception #88

Closed maslme closed 1 year ago

maslme commented 1 year ago

When I delete the required Arguments of all files in the Application form and try to submit the form it results in an TYPO3 Exception:

(1/1) #1476107295 TYPO3\CMS\Core\Error\Exception

PHP Warning: array_splice() expects parameter 2 to be int, string given in /www/htdocs/w008ab49/tilsner/typo3conf/ext/jobapplications/Classes/Controller/ApplicationController.php line 328

for me it works to extend line 323 from if (isset($arguments[$fileIndex]) && is_array($arguments[$fileIndex])) to if (isset($arguments[$fileIndex]) && is_array($arguments[$fileIndex]) && $arguments[$fileIndex]['error'] == 0)