ReportInputParameter is not a known Entity type

Hi there,
I have a problem when saving an Email Template with a report-based type. It shows this error


The report has parameters, i added in Reports use case.
I thought the issue it trying to save Transient.

@Transient @MetaProperty @Composition
protected List<ReportInputParameter> inputParameters = new ArrayList<>();

I found workaround where i need to remove the parameters in Reports, then save in the Email Template, then i re-added the parameters.
Is anyone facing this issue?

Thanks

I have tried to extend ReportEmailTemplateEdit class by overriding the before commit and pre commit.

@Override
    protected boolean preCommit() {
        boolean commitOk = super.preCommit();
        if (commitOk && getItem().getReport() != null) {
            getItem().getReport().setInputParameters(new ArrayList<>());
        }
        return commitOk;
    }
getDsContext().addBeforeCommitListener(context -> {
            if (templateReport != null){
                templateReport.getReport().setInputParameters(new ArrayList<>());
                context.getCommitInstances().add(templateReport);
            }
        });

But couldn’t get the save the email template