Ticket #190 (closed defect: fixed)

Opened 20 years ago

Last modified 19 years ago

View label incorrect when using field alias

Reported by: Bryan S Owned by: somebody
Priority: normal Milestone:
Version: Severity: normal
Keywords: Cc:

Description

<reactor>

<objects>

<object name="MyNewTableName?" >

<field name="ColOne?" alias="MyFieldAliasName?" />

</object>

</objects>

</reactor>

causes the label for the field to display like this MyNewTableName?15.MyFieldAliasName?.label:

Changing D:\Inetpub\wwwroot\ModelGlue?\unity\orm\ReactorAdapter?.cfc getObjectMetadata() as follows causes it to display correctly like this My Field Alias Name:

Original <cfset md[fields[i].alias].label = dict.getValue("#arguments.table#.#fields[i].alias#.label") />

Suggested <cfset md[fields[i].alias].label = dict.getValue("#fields[i].alias#") />

Change History

Changed 19 years ago by joe.rinehart

That's not quite how dictionaries work....I've put in place a fix that checks the dictionary first, then applies the camelCase -> Camel Case convention. Committing in a moment.

Changed 19 years ago by joe.rinehart

  • status changed from new to closed
  • resolution set to fixed

(In [238]) Fixes #190

Note: See TracTickets for help on using tickets.