Ticket #411: cfORMAdapter.cfc.patch.txt

File cfORMAdapter.cfc.patch.txt, 1.0 kB (added by cblackwell, 16 years ago)
Line 
1### Eclipse Workspace Patch 1.0
2#P modelglue newscaff
3Index: 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") {