jmix icon indicating copy to clipboard operation
jmix copied to clipboard

Reports 2.x add-on script fullscreen-editor always on Groovy mode

Open KartnDev opened this issue 1 year ago • 0 comments

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

  1. Go to Reports menu
  2. Click reports menu item
  3. create new report (casually, not by wizard)
  4. Go to the Bands tab
  5. Select any type neither Groovy
  6. Click "Full screen"
  7. Dialog appears
  8. No JPQL/SQL language highlight, but even you try type Groovy type words - it would be highlighted as keywords of dialect of JPQL/SQL
  9. 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

Screenshot 2024-10-25 at 16 13 04 Screenshot 2024-10-25 at 16 17 53

Expected Behavior

For each type of script - full screen editor also should change type for target script

KartnDev avatar Oct 25 '24 13:10 KartnDev