Fixing broken category lookup on BPE

This commit is contained in:
Rob Harrington
2014-11-26 13:16:29 +11:00
parent 2f28312f7e
commit 17a2e37eda

View File

@@ -7,7 +7,7 @@ angular.module("ofn.admin").directive "ofnTaxonAutocomplete", (Taxons) ->
placeholder: "Category"
multiple: false
initSelection: (element, callback) ->
callback Taxons.findByID(scope.product.category)
callback Taxons.findByID(scope.product.category_id)
query: (query) ->
query.callback { results: Taxons.findByTerm(query.term) }
formatResult: (taxon) ->