BPUR: match product supplier on clone

This commit is contained in:
Rob H
2013-06-26 22:42:59 +05:30
committed by Rohan Mitchell
parent c826b18584
commit 19fbbb8374
3 changed files with 9 additions and 4 deletions

View File

@@ -224,6 +224,7 @@ productsApp.controller('AdminBulkProductsCtrl', function($scope, $timeout, $http
var id = data.product.id;
dataFetcher("/admin/products/bulk_index.json?q[id_eq]="+id).then(function(data){
var newProduct = data[0];
$scope.matchSupplier(newProduct);
$scope.products.push(newProduct);
});
});