Skip to content

Commit 2de25f6

Browse files
committed
sf: extended fields fix. ACORN-1780
1 parent 89849e1 commit 2de25f6

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

public_html/storefront/controller/pages/account/address.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ protected function validateForm(array &$data)
372372
if ($fList) {
373373
foreach ($fList as $fName => $f) {
374374
//if the field is checkbox and not present in the post-data - set it null
375-
if (in_array($f['element_type'], ['C', 'G']) && !isset($data[$fName])) {
375+
if (in_array($f['element_type'], ['C','G','M']) && !isset($data[$fName])) {
376376
$data[$fName] = null;
377377
}
378378
}

public_html/storefront/controller/pages/account/edit.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ protected function validateForm(array &$data)
228228
if ($fList) {
229229
foreach ($fList as $fName => $f) {
230230
//if the field is checkbox and not present in the post-data - set it null
231-
if (in_array($f['element_type'],['C','G']) && !isset($data[$fName])) {
231+
if (in_array($f['element_type'],['C','G','M' ]) && !isset($data[$fName])) {
232232
$data[$fName] = null;
233233
}
234234
}

0 commit comments

Comments
 (0)