| 1 | ### Eclipse Workspace Patch 1.0 |
|---|
| 2 | #P modelglue newscaff |
|---|
| 3 | Index: ModelGlue/gesture/modules/orm/cform/cfORMAdapter.cfc |
|---|
| 4 | =================================================================== |
|---|
| 5 | --- ModelGlue/gesture/modules/orm/cform/cfORMAdapter.cfc (revision 342) |
|---|
| 6 | +++ ModelGlue/gesture/modules/orm/cform/cfORMAdapter.cfc (working copy) |
|---|
| 7 | @@ -238,9 +238,11 @@ |
|---|
| 8 | |
|---|
| 9 | private array function setCfcProperties(required struct md,array props=ArrayNew(1)) { |
|---|
| 10 | var i =1; |
|---|
| 11 | - for (i=1; i <= ArrayLen(arguments.md.properties); i++) { |
|---|
| 12 | - if (not ArrayContains(arguments.props,arguments.md.properties[i].name)) { |
|---|
| 13 | - arrayAppend(arguments.props,arguments.md.properties[i]); |
|---|
| 14 | + if(structKeyExists(arguments.md, "properties")) { |
|---|
| 15 | + for (i=1; i <= ArrayLen(arguments.md.properties); i++) { |
|---|
| 16 | + if (not ArrayContains(arguments.props,arguments.md.properties[i].name)) { |
|---|
| 17 | + arrayAppend(arguments.props,arguments.md.properties[i]); |
|---|
| 18 | + } |
|---|
| 19 | } |
|---|
| 20 | } |
|---|
| 21 | if (arguments.md.extends.fullname neq "WEB-INF.cftags.component") { |
|---|