Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Updated metacontrol template to use new AddItems() method for Type-ba…

…sed listboxes
  • Loading branch information...
commit 33f5f6269a704c9365eacb35470a202214365d5d 1 parent 67c924d
@mikeho mikeho authored
View
4 includes/qcodo/_core/codegen/templates/db_orm/meta_control/control_create_type.tpl
@@ -11,8 +11,8 @@
<% } %><% if (!$objColumn->NotNull) { %>
$this-><%=$strControlId %>->AddItem(QApplication::Translate('- Select One -'), null);
<% } %>
- foreach (<%= $objColumn->Reference->VariableType %>::$NameArray as $intId => $strValue)
- $this-><%= $strControlId %>->AddItem(new QListItem($strValue, $intId, $this-><%= $strObjectName %>-><%= $objColumn->PropertyName %> == $intId));
+
+ $this-><%= $strControlId %>->AddItems(<%= $objColumn->Reference->VariableType %>::$NameArray, $this-><%= $strObjectName %>-><%= $objColumn->PropertyName %>);
return $this-><%= $strControlId %>;
}
Please sign in to comment.
Something went wrong with that request. Please try again.