Help for integrating the Laravel package
Forum rules: Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
#3958 by George Horvath
23 Feb 2017, 13:05
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 allUncaught TypeError: Cannot read property 'record' of undefined
    at S.onBeforeSave (file?site=default:12295)
    at (ext-all.js:21)
    at constructor.fireEvent (ext-all.js:21)
    at (ext-all.js:21)
    at constructor.createRecords (ext-all.js:21)
    at (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!
#3964 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 allcomposer update