Angular module declarations mangled when UI Designer creates <script> statement for custom widget

Description

The UI Designer / Widget Editor also will jumble the Angular Module declarations in the created widget header, which then will appear in the Widget Editor when the widget is edited.

For example, I enter this in Required angular modules:

"angular.module('ui.bootstrap.demo', ['ngAnimate', 'ui.bootstrap'])",

then upon preview the browser throws:

"Uncaught SyntaxError: missing ) after argument list" ,

which shows this:

<script>
angular.module('bonitasoft.ui').requires.push('['ngAnimate'', ''ui.bootstrap'])', 'angular.module('ui.bootstrap.demo'');
</script>

and when I re-open the widget editor, I see this:

['ngAnimate', 'ui.bootstrap']), angular.module('ui.bootstrap.demo'

Environment

Win10
Both current versions of Chrome, Firefox

External Link

None

Workaround

None

Status

Assignee

Unassigned

Reporter

edward geyh

Affects versions

7.9.4

Reference

None

Fix versions

None
Configure