Skip to content

Commit 4e6e803

Browse files
authored
Merge pull request #1626 from woocommerce/issue/order-refresh-data-patch-2
Fixed issues on Order Detail refresh
2 parents 99ef581 + 716c20e commit 4e6e803

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

RELEASE-NOTES.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
3.3
22
-----
33

4+
3.2.1
5+
-----
6+
- bugfix: the order detail status and "Begin fulfillment" button now are correctly updated when the order status changes
7+
- bugfix: after adding a new order note, now it appear correctly inside the order detail
8+
49
3.2
510
-----
611
- Experimental: a Products feature switch is visible in Settings > Experimental Features that shows/hides the Products tab with a Work In Progress banner at the top.

WooCommerce/Classes/ViewRelated/Orders/Order Details/Order Notes Section/Add Order Note/NewNoteViewController.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,11 @@ class NewNoteViewController: UIViewController {
6868
self?.configureForEditingNote()
6969
return
7070
}
71+
72+
if let orderNote = orderNote {
73+
self?.viewModel.orderNotes.insert(orderNote, at: 0)
74+
}
75+
7176
ServiceLocator.analytics.track(.orderNoteAddSuccess)
7277
self?.dismiss(animated: true, completion: nil)
7378
}

WooCommerce/Classes/ViewRelated/Orders/Order Details/OrderDetailsViewController.swift

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,7 @@ final class OrderDetailsViewController: UIViewController {
6363
self?.viewModel.trackingIsReachable = true
6464
}
6565

66-
self?.reloadSections()
67-
self?.tableView.reloadData()
66+
self?.reloadTableViewSectionsAndData()
6867
}
6968
}
7069
}
@@ -104,7 +103,7 @@ private extension OrderDetailsViewController {
104103
return
105104
}
106105
self.viewModel.updateOrderStatus(order: order)
107-
self.tableView.reloadData()
106+
self.reloadTableViewSectionsAndData()
108107
}
109108
entityListener.onDelete = { [weak self] in
110109
guard let self = self else {

0 commit comments

Comments
 (0)