File tree 15 files changed +19
-30
lines changed
CatalogInventory/Model/Stock
15 files changed +19
-30
lines changed Original file line number Diff line number Diff line change @@ -360,7 +360,6 @@ protected function _construct()
360
360
*/
361
361
protected function _initOldFieldsMap ()
362
362
{
363
- $ this ->_oldFieldsMap = Mage::helper ('catalog ' )->getOldFieldMap ();
364
363
return $ this ;
365
364
}
366
365
Original file line number Diff line number Diff line change @@ -177,6 +177,7 @@ protected function _construct()
177
177
*/
178
178
protected function _initOldFieldsMap ()
179
179
{
180
+ // pre 1.6 fields names, old => new
180
181
$ this ->_oldFieldsMap = array (
181
182
'stock_status_changed_automatically ' => 'stock_status_changed_auto ' ,
182
183
'use_config_enable_qty_increments ' => 'use_config_enable_qty_inc '
Original file line number Diff line number Diff line change @@ -526,7 +526,12 @@ protected function _construct()
526
526
*/
527
527
protected function _initOldFieldsMap ()
528
528
{
529
- $ this ->_oldFieldsMap = Mage::helper ('sales ' )->getOldFieldMap ('order ' );
529
+ // pre 1.6 fields names, old => new
530
+ $ this ->_oldFieldsMap = [
531
+ 'payment_authorization_expiration ' => 'payment_auth_expiration ' ,
532
+ 'forced_do_shipment_with_invoice ' => 'forced_shipment_with_invoice ' ,
533
+ 'base_shipping_hidden_tax_amount ' => 'base_shipping_hidden_tax_amnt ' ,
534
+ ];
530
535
return $ this ;
531
536
}
532
537
Original file line number Diff line number Diff line change @@ -112,7 +112,6 @@ protected function _construct()
112
112
*/
113
113
protected function _initOldFieldsMap ()
114
114
{
115
- $ this ->_oldFieldsMap = Mage::helper ('sales ' )->getOldFieldMap ('order_address ' );
116
115
return $ this ;
117
116
}
118
117
Original file line number Diff line number Diff line change @@ -224,7 +224,6 @@ protected function _construct()
224
224
*/
225
225
protected function _initOldFieldsMap ()
226
226
{
227
- $ this ->_oldFieldsMap = Mage::helper ('sales ' )->getOldFieldMap ('order_creditmemo ' );
228
227
return $ this ;
229
228
}
230
229
Original file line number Diff line number Diff line change @@ -153,7 +153,10 @@ public function setCreditmemo(Mage_Sales_Model_Order_Creditmemo $creditmemo)
153
153
*/
154
154
protected function _initOldFieldsMap ()
155
155
{
156
- $ this ->_oldFieldsMap = Mage::helper ('sales ' )->getOldFieldMap ('creditmemo_item ' );
156
+ // pre 1.6 fields names, old => new
157
+ $ this ->_oldFieldsMap = [
158
+ 'base_weee_tax_applied_row_amount ' => 'base_weee_tax_applied_row_amnt ' ,
159
+ ];
157
160
return $ this ;
158
161
}
159
162
Original file line number Diff line number Diff line change @@ -223,7 +223,6 @@ protected function _construct()
223
223
*/
224
224
protected function _initOldFieldsMap ()
225
225
{
226
- $ this ->_oldFieldsMap = Mage::helper ('sales ' )->getOldFieldMap ('order_invoice ' );
227
226
return $ this ;
228
227
}
229
228
Original file line number Diff line number Diff line change @@ -125,7 +125,10 @@ public function _construct()
125
125
*/
126
126
protected function _initOldFieldsMap ()
127
127
{
128
- $ this ->_oldFieldsMap = Mage::helper ('sales ' )->getOldFieldMap ('invoice_item ' );
128
+ // pre 1.6 fields names, old => new
129
+ $ this ->_oldFieldsMap = [
130
+ 'base_weee_tax_applied_row_amount ' => 'base_weee_tax_applied_row_amnt ' ,
131
+ ];
129
132
return $ this ;
130
133
}
131
134
/**
Original file line number Diff line number Diff line change @@ -246,7 +246,10 @@ protected function _construct()
246
246
*/
247
247
protected function _initOldFieldsMap ()
248
248
{
249
- $ this ->_oldFieldsMap = Mage::helper ('sales ' )->getOldFieldMap ('order_item ' );
249
+ // pre 1.6 fields names, old => new
250
+ $ this ->_oldFieldsMap = [
251
+ 'base_weee_tax_applied_row_amount ' => 'base_weee_tax_applied_row_amnt ' ,
252
+ ];
250
253
return $ this ;
251
254
}
252
255
Original file line number Diff line number Diff line change @@ -127,7 +127,6 @@ protected function _construct()
127
127
*/
128
128
protected function _initOldFieldsMap ()
129
129
{
130
- $ this ->_oldFieldsMap = Mage::helper ('sales ' )->getOldFieldMap ('order_shipment ' );
131
130
return $ this ;
132
131
}
133
132
Original file line number Diff line number Diff line change @@ -262,7 +262,6 @@ protected function _construct()
262
262
*/
263
263
protected function _initOldFieldsMap ()
264
264
{
265
- $ this ->_oldFieldsMap = Mage::helper ('sales ' )->getOldFieldMap ('quote ' );
266
265
return $ this ;
267
266
}
268
267
Original file line number Diff line number Diff line change @@ -321,7 +321,6 @@ protected function _construct()
321
321
*/
322
322
protected function _initOldFieldsMap ()
323
323
{
324
- $ this ->_oldFieldsMap = Mage::helper ('sales ' )->getOldFieldMap ('quote_address ' );
325
324
return $ this ;
326
325
}
327
326
Original file line number Diff line number Diff line change @@ -247,7 +247,6 @@ protected function _construct()
247
247
*/
248
248
protected function _initOldFieldsMap ()
249
249
{
250
- $ this ->_oldFieldsMap = Mage::helper ('sales ' )->getOldFieldMap ('quote_item ' );
251
250
return $ this ;
252
251
}
253
252
Original file line number Diff line number Diff line change 1198
1198
</product >
1199
1199
</catalog >
1200
1200
<sales >
1201
- <old_fields_map >
1202
- <order >
1203
- <payment_authorization_expiration >payment_auth_expiration</payment_authorization_expiration >
1204
- <forced_do_shipment_with_invoice >forced_shipment_with_invoice</forced_do_shipment_with_invoice >
1205
- <base_shipping_hidden_tax_amount >base_shipping_hidden_tax_amnt</base_shipping_hidden_tax_amount >
1206
- </order >
1207
- </old_fields_map >
1208
1201
<quote >
1209
1202
<totals >
1210
1203
<nominal >
Original file line number Diff line number Diff line change 225
225
</weee >
226
226
</totals >
227
227
</order_creditmemo >
228
- <old_fields_map >
229
- <order_item >
230
- <base_weee_tax_applied_row_amount >base_weee_tax_applied_row_amnt</base_weee_tax_applied_row_amount >
231
- </order_item >
232
- <invoice_item >
233
- <base_weee_tax_applied_row_amount >base_weee_tax_applied_row_amnt</base_weee_tax_applied_row_amount >
234
- </invoice_item >
235
- <creditmemo_item >
236
- <base_weee_tax_applied_row_amount >base_weee_tax_applied_row_amnt</base_weee_tax_applied_row_amount >
237
- </creditmemo_item >
238
- </old_fields_map >
239
228
</sales >
240
229
</global >
241
230
<adminhtml >
You can’t perform that action at this time.
0 commit comments