Skip to content
Permalink
Browse files

Update customer.php

Fixed syntax error.
  • Loading branch information...
waqasjawed committed Mar 7, 2016
1 parent 008d4b9 commit 55590219884daf9523aa4aae6c78e51fff2db0c6
Showing with 1 addition and 1 deletion.
  1. +1 −1 upload/admin/controller/customer/customer.php
@@ -1102,7 +1102,7 @@ protected function validateForm() {
foreach ($custom_fields as $custom_field) {
if (($custom_field['location'] == 'address') && $custom_field['required'] && empty($value['custom_field'][$custom_field['custom_field_id']])) {
$this->error['address'][$key]['custom_field'][$custom_field['custom_field_id']] = sprintf($this->language->get('error_custom_field'), $custom_field['name']);
} elseif (($custom_field['type'] == 'text' && !empty($custom_field['validation'] && $custom_field['location'] == 'address')) && !filter_var($value['custom_field'][$custom_field['custom_field_id']], FILTER_VALIDATE_REGEXP, array('options' => array('regexp' => $custom_field['validation'])))) {
} elseif (($custom_field['type'] == 'text' && !empty($custom_field['validation']) && $custom_field['location'] == 'address') && !filter_var($value['custom_field'][$custom_field['custom_field_id']], FILTER_VALIDATE_REGEXP, array('options' => array('regexp' => $custom_field['validation'])))) {

This comment has been minimized.

Copy link
@yurisbv

yurisbv Jun 25, 2016

Corrigiu meu problema!

$this->error['address'][$key]['custom_field'][$custom_field['custom_field_id']] = sprintf($this->language->get('error_custom_field_validate'), $custom_field['name']);
}
}

1 comment on commit 5559021

@yurisbv

This comment has been minimized.

Copy link

commented on 5559021 Jun 25, 2016

Funciona.

Perfeito!

Please sign in to comment.
You can’t perform that action at this time.