Revert "issue #22103: item site to default to default site"
authorSteve Hackbarth <stephenhackbarth@gmail.com>
Fri, 6 Dec 2013 20:55:26 +0000 (15:55 -0500)
committerSteve Hackbarth <stephenhackbarth@gmail.com>
Fri, 6 Dec 2013 20:55:26 +0000 (15:55 -0500)
This reverts commit 096fd5134eae872140ee1a1c7643895d6faf7815.

enyo-client/application/source/models/item_site.js

index f8630a0..e460b30 100644 (file)
@@ -48,8 +48,7 @@ white:true*/
 
     defaults: function () {
       return {
-        isActive: true,
-        site: XT.defaultSite()
+        isActive: true
       };
     },
 
@@ -285,7 +284,7 @@ white:true*/
     success = options.success;
     options.success = function (data) {
       that.reset(data);
-      if (success) { success(that); }
+      if (success) { success(data); }
     };
     XM.ModelMixin.dispatch("XM.ItemSite", "itemsForCustomer",
       [customerId, shiptoId, effectiveDate, options.query], options);