portal:inputSearch scripts fail due to JavaScript error on Liferay 7.0 + FP 81

Description

Steps to reproduce:

  1. Deploy the Portal Showcase to Liferay 7.0 + FP 81.

  2. Navigate to the portal:inputSearch General example.

If the bug still exists, the following error will appear in the browser console logs:

If the bug is fixed, the error will not appear.

Environment

None

Activity

Show:

Neil GriffinJuly 21, 2022 at 12:42 PM

Liferay 7.0.x is beyond service life.

Kyle StiemannMay 16, 2019 at 5:39 PM
Edited

This bug is difficult to fix in Liferay Faces Portal while avoiding unnecessary dependnecies on Liferay Portal APIs like ScriptData. It would probably be better to create an "Improvement" LPS and fix up all the JSP taglib occurences of $('#id') or jQuery('#id') or .one('#id') to escape any colons ("\\\\:"), use an id selector ("[id='id']") or ("document.getElementById('id')").

Won't Fix
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Components

Fix versions

Affects versions

Priority

Zendesk Support

Created May 15, 2019 at 8:50 PM
Updated July 21, 2022 at 12:42 PM
Resolved July 21, 2022 at 12:42 PM