Skip to content

Commit

Permalink
Another hack to force updated product to display
Browse files Browse the repository at this point in the history
  • Loading branch information
jimwins committed Dec 12, 2018
1 parent a666fa2 commit e317aef
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions item.php
Original file line number Diff line number Diff line change
Expand Up @@ -861,6 +861,9 @@ function saveItemProperty(value, settings) {
data[key]= value;

item[key]("\0"); // force knockout to update this observable when item updated
if (key == 'product_id') { // and a special hack for product
itemModel.product.name("\0");
}

Scat.api('item-update', data)
.done(function (data) {
Expand Down

0 comments on commit e317aef

Please sign in to comment.