Ticket #129 (new defect)

Opened 1 year ago

Last modified 1 month ago

gatway.project.xsl getByFields breaks on column aliased 'x'

Reported by: cbradford Owned by: dhughes
Type: defect Priority: high
Milestone: 1.0 Release Component: Reactor - Reactor XSL
Version: 1.0 Severity: critical
Keywords: Cc:

Description

The XSL that generates the getByFields method breaks if a field on the object is aliased as 'x', because it creates a var named x to be used internally in the function. The same would be true if a column were aliased 'query' or 'where', since those are also declared as vars, and the arguments are generated using the field aliases. This creates a "Cannot declare local variable x twice" error when trying to compile the generated Gateway.

Fix would be to rename the vars with underscores or something similar.

Attachments

gateway.project.xsl (3.9 kB) - added by cbradford 1 year ago.
Fix XSL with underscores for vars

Change History

Changed 1 year ago by cbradford

Fix XSL with underscores for vars

Changed 1 year ago by cbradford

The same is also true for deleteByFields. The attachment contains a fix using underscores for the vars.

Changed 1 month ago by mark.drew@…

  • milestone set to 1.0 Release
Note: See TracTickets for help on using tickets.