File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed
app/code/core/Mage/Sales/Model/Order Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,13 @@ class Mage_Sales_Model_Order_Config extends Mage_Core_Model_Config_Base
28
28
*/
29
29
protected $ _stateStatuses ;
30
30
31
+ /**
32
+ * Statuses array
33
+ *
34
+ * @var array
35
+ */
36
+ protected $ _statuses ;
37
+
31
38
/**
32
39
* States array
33
40
*
@@ -84,9 +91,12 @@ public function getStateDefaultStatus($state)
84
91
*/
85
92
public function getStatusLabel ($ code )
86
93
{
87
- $ status = Mage::getModel ('sales/order_status ' )
88
- ->load ($ code );
89
- return $ status ->getStoreLabel ();
94
+ $ key = $ code . '/ ' . Mage::app ()->getStore ()->getStoreId ();
95
+ if (!isset ($ this ->_statuses [$ key ])) {
96
+ $ status = Mage::getModel ('sales/order_status ' )->load ($ code );
97
+ $ this ->_statuses [$ key ] = $ status ->getStoreLabel ();
98
+ }
99
+ return $ this ->_statuses [$ key ];
90
100
}
91
101
92
102
/**
You can’t perform that action at this time.
0 commit comments