[4.1.0.0] Customer Custom Fields do not populate
Dave3009 opened this issue · comments
In the latest opencart-master the customer custom fields do not populate on admin/view/template/customer_form.twig
Root cause:
In admin/controller/customer/customer.php line: 601
$data['account_custom_field'] = $customer_info['custom_field'];
Solution:
Change line 601 to
$data['account_custom_field'] = json_decode($customer_info['custom_field'],true);
This was working in 4.0.2.3 which is listed as the most recent release, downloading the latest master shows version 4.1.0.0, not sure if I'm doing something wrong here!
Versiion: master today
Activated custom fields:
Display at customer frontend: (OK)
Display at customer frontend address book entries: (not present)
Display at customer frontend address entry: (OK)
Display at backend customer edit: (OK)
Display at backend address list: (not present)
Display at backend address edit: (Date is correct displayed but the deactivated custom fields are not filtered)