Commit a21a83f3 authored by Julien's avatar Julien

Merge pull request #1697 from bonitasoft/fix/gettext-widget-choices

Fix gettext widget for choiveValues as object without group
parents 47b63aab aab32a58
......@@ -127,7 +127,9 @@ function extract() {
// grouped choice values
if (typeof choice == "object") {
dict[choice.label] = (acc[choice.label] || []).concat('#: ' + unescape(fileName) + ':' + lineNumber);
dict[choice.group] = (acc[choice.group] || []).concat('#: ' + unescape(fileName) + ':' + lineNumber);
if (choice.group) {
dict[choice.group] = (acc[choice.group] || []).concat('#: ' + unescape(fileName) + ':' + lineNumber);
}
} else {
dict[choice] = (acc[choice] || []).concat('#: ' + unescape(fileName) + ':' + lineNumber);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment