Page 1 of 1

Customer record error, add new address to customer error

Posted: 23 Feb 2017, 13:05
by George Horvath
Hi,
Default Laravel aimeos installation.
On extadmin I tried to add another address to a customer (this time for the main (admin) customer and i got this error message when push on save:
(error on browser development panel/console - F12)

Code: Select all

Uncaught TypeError: Cannot read property 'record' of undefined
    at S.onBeforeSave (file?site=default:12295)
    at h.Event.fire (ext-all.js:21)
    at constructor.fireEvent (ext-all.js:21)
    at constructor.save (ext-all.js:21)
    at constructor.createRecords (ext-all.js:21)
    at h.Event.fire (ext-all.js:21)
    at constructor.fireEvent (ext-all.js:21)
    at constructor.add (ext-all.js:21)
    at S.onSaveItem (file?site=default:4149)
    at S.onClick (ext-all.js:21)
Any idea how can i add another addres to a customer by admin? And why the error given.

I tested this method from the checkout panel I added different 2 addresses on the checkout page and iĆ³it worked well. I see on the extadmin panel to the 2 addresses for the customer. But somehow I cant add another address on extadmin panel (customers-select customer-address-add)

Thank you for any help!

Re: Customer record error, add new address to customer error

Posted: 24 Feb 2017, 12:25
by aimeos
Seems to be a bug in the customer address panel. We will care about that.
Thank you for the hint!

Re: Customer record error, add new address to customer error

Posted: 24 Feb 2017, 13:48
by aimeos
This was already fixed in the 2017.x branch and we've back ported it now into the 2016.10 branch. The fix will be part of the next release. You can get it immediately if you add

Code: Select all

"aimeos/ai-admin-extadm": "2016.10.x-dev"
to the "require" section of your composer.json and execute

Code: Select all

composer update

Re: Customer record error, add new address to customer error

Posted: 03 Mar 2017, 09:38
by George Horvath
Thank you!