issue #23560: picker type has to correspond to schema for sales order site
authorSteve Hackbarth <stephenhackbarth@gmail.com>
Fri, 9 May 2014 03:12:10 +0000 (23:12 -0400)
committerSteve Hackbarth <stephenhackbarth@gmail.com>
Fri, 9 May 2014 03:12:10 +0000 (23:12 -0400)
enyo-client/application/source/startup.js
enyo-client/application/source/views/workspace.js
enyo-client/application/source/widgets/picker.js

index 686211e..8c5b6ac 100644 (file)
@@ -125,6 +125,7 @@ white:true*/
   XT.cacheCollection("XM.privileges", "XM.PrivilegeCollection");
   XT.cacheCollection("XM.projectTypes", "XM.ProjectTypeCollection", "code");
   XT.cacheCollection("XM.siteRelations", "XM.SiteRelationCollection", "code");
+  XT.cacheCollection("XM.sites", "XM.SiteCollection", "code");
   XT.cacheCollection("XM.shifts", "XM.ShiftCollection", "number");
   XT.cacheCollection("XM.sources", "XM.SourceCollection");
   XT.cacheCollection("XM.states", "XM.StateCollection", "abbreviation");
index 789e398..30c4246 100644 (file)
@@ -2328,7 +2328,7 @@ strict: false*/
             {kind: "XV.HoldTypePicker", attr: "holdType"},
             {kind: "onyx.GroupboxHeader", content: "_shipping".loc()},
             {kind: "XV.CheckboxWidget", attr: "shipComplete"},
-            {kind: "XV.SitePicker", attr: "site"},
+            {kind: "XV.HeavyweightSitePicker", attr: "site"},
             {kind: "XV.InputWidget", attr: "fob"},
             {kind: "XV.InputWidget", attr: "customerPurchaseOrderNumber",
              label: "_custPO".loc()},
index e45acc8..c9f92bf 100644 (file)
@@ -848,6 +848,12 @@ regexp:true, undef:true, trailing:true, white:true, strict:false */
     },
   });
 
+  enyo.kind({
+    name: "XV.HeavyweightSitePicker",
+    kind: "XV.SitePicker",
+    collection: "XM.sites"
+  });
+
   enyo.kind({
     name: "XV.OptionalSitePicker",
     kind: "XV.SitePicker",