[v1.3.1] Fix the issue breaks editing of invoice billing and shipping address

Created by Rosa Truong, Modified on Fri, 14 May, 2021 at 4:45 PM by Rosa Truong

Issue:

I have updated version 1.3.1 on M2.4.1.

Going to the shipping or billing address edit page on an Invoice in admin gives the following Javascript JSON error:

Uncaught SyntaxError: Unexpected token } in JSON at position 140

The JSON is:

    {

        "*": {

            "Bss_CustomerAttributes/js/order/address/customer-address": {

               "customAddress": }

        }

    }


Solution:

The issue happens due to the module's bug in the case that orders do not the customer address attribute

To solve this issue, we have edited this file app/code/Bss/CustomerAttributes/view/adminhtml/templates/order/address/form.phtml

Please check and apply the fixed attachment to the site.


If you need any further assistance, please feel free to contact us.

We're more than happy to support you

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article