Customer record error, add new address to customer error

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
George Horvath
Posts: 11
Joined: 01 Oct 2016, 10:54

Customer record error, add new address to customer error

Post by George Horvath » 23 Feb 2017, 13:05

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!

User avatar
aimeos
Administrator
Posts: 7836
Joined: 01 Jan 1970, 00:00

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

Post by aimeos » 24 Feb 2017, 12:25

Seems to be a bug in the customer address panel. We will care about that.
Thank you for the hint!
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

User avatar
aimeos
Administrator
Posts: 7836
Joined: 01 Jan 1970, 00:00

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

Post by aimeos » 24 Feb 2017, 13:48

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
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

George Horvath
Posts: 11
Joined: 01 Oct 2016, 10:54

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

Post by George Horvath » 03 Mar 2017, 09:38

Thank you!

Post Reply