Issue Bug Closed

#64360TCEForms.suggest JS code is broken

Xavier Perseguers 01/19/15, 16:28 updated 10/02/18, 11:46

Description

The generated code is of the form:

var SuggestTt_contentPi_flexform37006 = new TCEForms.Suggest("data[tt_content][37006][pi_flexform][data][sDEF][lDEF][settings.startingpoint][vDEF]", "tt_content", "pi_flexform|data|sDEF|lDEF|settings.startingpoint|vDEF", "37006", 3000, 2", '');
SuggestTt_contentPi_flexform37006.defaultValue = "Find records";

and it crashes the JS parser since the minimum number of chars is wrongly quoted (ending double quote without leading one). As this variable is an integer, the trailing quote should be removed.

Reviews 1