Ticket #304 (closed defect: fixed)

Opened 18 years ago

Last modified 16 years ago

/include/value[@overwrite] does not default to true

Reported by: DanWilson Owned by: somebody
Priority: high Milestone: 3.0
Version: Severity: blocker
Keywords: Cc:

Description

The modelglue documentation states the default value for the overwrite attribute of /include/value tag is true. Testing proves that it is not so.

The default behaviour is overwrite=false.

The problem seems to be on line 145 of /Core/XMLModelGlueLoader.cfc

<cfparam name="configXml.views.xmlChildren[i].xmlChildren[j].xmlAttributes.overwrite" default="false">

Should be

<cfparam name="configXml.views.xmlChildren[i].xmlChildren[j].xmlAttributes.overwrite" default="true">

Change History

Changed 18 years ago by seancorfield

Since the <value> tag was designed to provide defaults that could be overridden by data in the event object, the default has to remain false - this is a doc bug in my opinion.

Changed 16 years ago by DanWilson

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

Fixed documentation. closing.

Note: See TracTickets for help on using tickets.