File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed
app/code/Magento/Sales/Model/Order Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change 6
6
namespace Magento \Sales \Model \Order ;
7
7
8
8
use Magento \Framework \App \Area ;
9
- use Magento \Framework \Exception \LocalizedException ;
10
9
use Magento \Framework \App \ObjectManager ;
10
+ use Magento \Framework \Exception \LocalizedException ;
11
+ use Magento \Framework \ObjectManager \ResetAfterRequestInterface ;
11
12
12
13
/**
13
14
* Order configuration model
14
15
*
15
16
* @api
16
17
* @since 100.0.2
17
18
*/
18
- class Config
19
+ class Config implements ResetAfterRequestInterface
19
20
{
20
21
/**
21
22
* @var \Magento\Sales\Model\ResourceModel\Order\Status\Collection
@@ -84,6 +85,15 @@ public function __construct(
84
85
$ this ->statusLabel = $ statusLabel ?: ObjectManager::getInstance ()->get (StatusLabel::class);
85
86
}
86
87
88
+ /**
89
+ * @inheritDoc
90
+ */
91
+ public function _resetState (): void
92
+ {
93
+ $ this ->collection = null ;
94
+ }
95
+
96
+
87
97
/**
88
98
* Get collection.
89
99
*
You can’t perform that action at this time.
0 commit comments