Skip to content

Commit 664d61d

Browse files
committed
ACP2E-961: Customer attribute 'Is required' attribute is not properly overridden per website scope in Admin
1 parent c62c32d commit 664d61d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

app/code/Magento/Customer/Model/FileUploaderDataResolver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ private function getFileUploaderData(
100100
[
101101
'file' => $file,
102102
'size' => null !== $stat ? $stat['size'] : 0,
103-
'url' => $viewUrl ?? '',
103+
'url' => $viewUrl,
104104
// phpcs:ignore Magento2.Functions.DiscouragedFunction
105105
'name' => basename($file),
106106
'type' => $fileProcessor->getMimeType($file),

app/code/Magento/Customer/Test/Unit/Model/Customer/DataProviderTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -966,7 +966,8 @@ function ($origName) {
966966
'max_file_size' => $maxFileSize,
967967
'file_extensions' => 'ext1, eXt2 '
968968
],
969-
'label' => __('frontend_label')
969+
'label' => __('frontend_label'),
970+
'attributeId' => null
970971
]
971972
]
972973
]

0 commit comments

Comments
 (0)