[BUGFIX] Prevent javascript error in backend 14/54714/5
authorMarkus Günther <mail@markus-guenther.de>
Mon, 20 Nov 2017 08:18:27 +0000 (09:18 +0100)
committerAlexander Opitz <opitz.alexander@googlemail.com>
Mon, 8 Jan 2018 09:46:53 +0000 (10:46 +0100)
commit26f68b8ae8de29754ae7b74cd06dfa9a9268b105
tree6ed8e2567205f3fe6cc1429f8cec151fa1bd0215
parente26fcb2a34d756c615ab9f653ba9835bddd6a8d3
[BUGFIX] Prevent javascript error in backend

Adding a condition to check if a backend user has permissions on the
search to prevent a JS error while initializing the autocomplete module.
Also check if a module is available to start with.

Fixes: #82969
Releases: master, 8.7, 7.6
Change-Id: If2827902443ff7411d9b2c1050213be3e0d78fb6
Reviewed-on: https://review.typo3.org/54714
Reviewed-by: Markus Günther <mail@markus-guenther.de>
Tested-by: Markus Günther <mail@markus-guenther.de>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
Reviewed-by: Henning Liebe <h.liebe@neusta.de>
Reviewed-by: Alexander Opitz <opitz.alexander@googlemail.com>
Tested-by: Alexander Opitz <opitz.alexander@googlemail.com>
typo3/sysext/backend/Resources/Public/JavaScript/LiveSearch.js
typo3/sysext/backend/Resources/Public/JavaScript/modulemenu.js