jmix
jmix copied to clipboard
Reports 2.x add-on script fullscreen-editor always on Groovy mode
Environment
Jmix version: 2.x
Bug Description
Whenever you want to create a report, after attempting to edit script opens fullscript editor - doesn't matter which type of script selected: groovy, jpql or sql - always only groovy opens
Steps To Reproduce
- Go to Reports menu
- Click reports menu item
- create new report (casually, not by wizard)
- Go to the Bands tab
- Select any type neither Groovy
- Click "Full screen"
- Dialog appears
- No JPQL/SQL language highlight, but even you try type Groovy type words - it would be highlighted as keywords of dialect of JPQL/SQL
- Click question mark - tip context would be about Groovy, not sql or jpql
Current Behavior
Full screen editor always sets type of context as Groovy
Expected Behavior
For each type of script - full screen editor also should change type for target script