Dnn.Platform icon indicating copy to clipboard operation
Dnn.Platform copied to clipboard

[Bug]: JS: Uncaught SyntaxError: invalid escape sequence

Open puresystems opened this issue 9 months ago • 1 comments

Is there an existing issue for this?

  • [x] I have searched the existing issues

What happened?

Noticed a JS error in the browser console when opening the Settings of any module.

Steps to reproduce?

  1. Create a clean install of DNN v10
  2. After install, enter edit mode
  3. Select "Settings" from the action menu for a module on the page
  4. Settings for the module is displayed with a JS error via the browser console

Current Behavior

No response

Expected Behavior

Did not expect to see any JS errors.

Relevant log output

$('#dnn_ctr354_ModuleSettings_termsSelector').dnnComboBox({"valueField":"value","labelField":"text","searchField":"text","options":[],"create":false,"preload":"focus","highlight":false,"allowEmptyOption":false,"plugins":["remove_button"],"checkbox":false,"maxOptions":0,"maxItems":0,"localization":{"ItemsChecked":"items checked","AllItemsChecked":"All items checked"},"render":{"option":"function(item, escape) {return '<div>' + item.text + '</div>';}"},"load":"function(query, callback) {\r\n                                $.ajax({\r\n                                    url: '/API/InternalServices/ItemListService/GetTerms?includeSystem=false\\u0026includeTags=false\\u0026q=' + encodeURIComponent(query),\r\n                                    type: 'GET',\r\n                                    error: function() {\r\n                                        callback();\r\n                                    },\r\n                                    success: function(data) {\r\n                                        callback(data);\r\n                                    }\r\n                                });\r\n                            }\r\n"});$('#dnn_ctr354_ModuleSettings_startDatePicker').pikaday({"minDate":new Date(\"1900-01-01 00:00:00\"),"maxDate":new Date(\"9999-12-31 23:59:59\"),"format":"YYYY-MM-DD HH:mm:ss","showTime":true,"use24hour":true,"autoClose":true});$('#dnn_ctr354_ModuleSettings_endDatePicker').pikaday({"minDate":new Date(\"1900-01-01 00:00:00\"),"maxDate":new Date(\"9999-12-31 23:59:59\"),"format":"YYYY-MM-DD HH:mm:ss","showTime":true,"use24hour":true,"autoClose":true});

Anything else?

This was on a clean install of v10. No other modules installed.

Affected Versions

10.0.0 (latest v10 release)

What browsers are you seeing the problem on?

Firefox

Code of Conduct

  • [x] I agree to follow this project's Code of Conduct

puresystems avatar Apr 16 '25 15:04 puresystems

Confirmed and that breaks the date pickers in there

valadas avatar Apr 22 '25 05:04 valadas