Skip to content

The error message contains the groovy script from the previous Report configuration window #5005

@SergeiAksenov2

Description

@SergeiAksenov2

Environment

Jmix version: 2.7.999-SNAPSHOT
Jmix Studio Plugin Version: 2.8.SNAPSHOT8049-252
IntelliJ version: IntelliJ IDEA 2025.2.6 (Ultimate Edition)

Bug Description

The error contains a groovy script from the previous Report configuration value

Video:

Image

Steps To Reproduce

  1. Create a project with Reports add-on
  2. Create the Report for list of entities.
  3. Add new band with Groovy script.
  4. Press Save.
  5. Change the Dataset type to the JSON.
  6. Fill "JSON path query" field as $.deb[**].
  7. Fill "Groovy script" field.
  8. Press Save.
  9. Run the report.

Groovy script1:

import io.jmix.core.DataManager
import qa.jmix.flowui_smoke.entity.Product
def users = dataManager.load(Product)
        .all()
        .list()
def result = []
users.each { p ->
    result.add([
			name: p.name
    ])
}
return result

Groovy script2:

return '''
{
    "deb":  {
        "product":   {
            "name":   "ProductName", "price":   "23.45"
        }
    }
}
'''

Actual Behavior

There is the error message that contains Groovy script from p.3.

Expected Behavior

The error message should contain Groovy script from p.7.

Metadata

Metadata

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions