Issue Bug Closed

#71056Suggest Wizard do not work on new records

Alexander Grein 10/26/15, 22:07 updated 10/21/17, 17:36

Description

If adding e.g. a news plugin on a page and click on the suggest wizard of the storage page a error 500 will be thrown.

The problem is somewhere in typo3/sysext/backend/Classes/Form/Wizard/SuggestWizard.php inside the searchAction method.

Just doing this:

$uid = (int)(isset($parsedBody['uid']) ? $parsedBody['uid'] : $queryParams['uid']);

,I thing is not such a good idea, because in case of a new record $parsedBody[‘uid’] contains a string like “NEW12345”, which will result in a wrong uid if force it to an int.

Reviews 1