Skip to content

Commit

Permalink
Fixed #1366 a bug that cause old order status message to persist
Browse files Browse the repository at this point in the history
  • Loading branch information
nfourtythree committed Apr 9, 2020
1 parent 6531483 commit 4c694e0
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
- Fixed a bug that caused a redirect back to the Edit Customer page instead of the Edit User page editing an address from the Customer Info tab. ([#1368](https://github.com/craftcms/commerce/issues/1368))
- Hard deleting a product now correctly hard deletes orphaned variants. ([#1186](https://github.com/craftcms/commerce/issues/1186))
- Fixed a bug when that occurred when selecting all orders on the order index page. ([#1367](https://github.com/craftcms/commerce/issues/1367))
- Fixed a bug that could occur when changing and order’s status on the Edit Order page. ([#1366](https://github.com/craftcms/commerce/issues/1366))

## 3.1.1 - 2020-04-03

Expand Down
2 changes: 1 addition & 1 deletion src/web/assets/commerceui/dist/js/app.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/web/assets/commerceui/dist/js/app.js.map

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/web/assets/commerceui/src/js/OrderMeta.vue
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
<div class="input ltr">
<order-status
:originalOrderStatusId="originalDraft.order.orderStatusId"
:original-message="originalDraft.order.message"
:order="order"
@updateOrder="updateOrder"></order-status>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,16 @@
originalOrderStatusId: {
type: Number,
},
originalMessage: {
type: [String, null],
},
},
data() {
return {
isRecalculating: false,
textareaHasFocus: false,
orderMessage: '',
}
},
Expand Down Expand Up @@ -97,10 +101,11 @@
message: {
get() {
return this.order.message
return this.orderMessage
},
set(value) {
this.orderMessage = value
this.$store.commit('updateDraftOrderMessage', value)
},
},
Expand Down

0 comments on commit 4c694e0

Please sign in to comment.