t31321
t31321

Reputation: 773

Why Birt report plugin removes param entries

This could be silly but I dont understand why this code is included on the example:

params.remove('action')
params.remove('controller')
params.remove('name')

Because they are not necessary hence freeing the memory or they have special meaning when passed to the report engine?

Upvotes: 1

Views: 26

Answers (1)

Joshua Moore
Joshua Moore

Reputation: 24776

The reason why they are removed is because they Grails related and not related to the report itself. It's removed to keep the log/debug clean and to avoid any confusion downstream in the report itself.

Notice the debugging/logging in the source code.

It won't hurt anything to put them there, provided your reports know to ignore them or understand that they are provided by Grails.

Upvotes: 1

Related Questions