Skip to content

Commit 03807d9

Browse files
author
Stanislav Idolov
authored
🔃 [EngCom] Public Pull Requests - 2.1-develop
Accepted Public Pull Requests: - #17242: [Backport] Add VAT number to email source variables (by @mageprince) - #17241: [Backport] Modify Report processor to return 500 (by @mageprince) Fixed GitHub Issues: - #11512: Incorrect use of 503 status code (reported by @andrewhowdencom) has been fixed in #17241 by @mageprince in 2.1-develop branch Related commits: 1. 5685d19
2 parents 267d91d + ec5d57b commit 03807d9

File tree

4 files changed

+4
-1
lines changed

4 files changed

+4
-1
lines changed

app/code/Magento/Email/Model/Source/Variables.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ public function __construct()
4949
['value' => 'general/store_information/city', 'label' => __('City')],
5050
['value' => 'general/store_information/street_line1', 'label' => __('Street Address 1')],
5151
['value' => 'general/store_information/street_line2', 'label' => __('Street Address 2')],
52+
['value' => 'general/store_information/merchant_vat_number', 'label' => __('VAT Number')],
5253
];
5354
}
5455

app/code/Magento/Email/Test/Unit/Model/Source/VariablesTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ protected function setup()
5353
['value' => 'general/store_information/city', 'label' => __('City')],
5454
['value' => 'general/store_information/street_line1', 'label' => __('Street Address 1')],
5555
['value' => 'general/store_information/street_line2', 'label' => __('Street Address 2')],
56+
['value' => 'general/store_information/merchant_vat_number', 'label' => __('VAT Number')],
5657
];
5758
}
5859

app/code/Magento/Email/i18n/en_US.csv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ Region/State,Region/State
5454
City,City
5555
"Street Address 1","Street Address 1"
5656
"Street Address 2","Street Address 2"
57+
"VAT Number","VAT Number"
5758
"Store Contact Information","Store Contact Information"
5859
%1,%1
5960
"Template Variables","Template Variables"

pub/errors/processor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ public function process503()
203203
public function processReport()
204204
{
205205
$this->pageTitle = 'There has been an error processing your request';
206-
$this->_response->setHttpResponseCode(503);
206+
$this->_response->setHttpResponseCode(500);
207207

208208
$this->showErrorMsg = false;
209209
$this->showSentMsg = false;

0 commit comments

Comments
 (0)