Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attributes for s_user not created by API resource #25

Open
samuelvogel opened this issue Feb 13, 2017 · 4 comments
Open

Attributes for s_user not created by API resource #25

samuelvogel opened this issue Feb 13, 2017 · 4 comments
Labels
bug Issues that describe an unexpected behaviour in an existing functionality. minor "bug" issues that are neither "critical" nor "major".

Comments

@samuelvogel
Copy link
Member

When creating a customer through the API resource, not entry in s_user_attributes is created with Shopware 5.2.16.

Example:
curl -i 'http://localhost/shopware/api/customers' --DIGEST -u user:key --globoff -H 'content-type: application/json' -d '{"email":"[email protected]","salutation":"mr","firstname":"Max","lastname":"Tester","billing":{"salutation":"mr","firstname":"Max","lastname":"Tester","street":"Musterstr. 1","zipcode":"12345","city":"Musterstadt","country":2}}'

@samuelvogel
Copy link
Member Author

This especially affects customer accounts created via Pickware POS.

@fixpunkt
Copy link
Member

Is this an error? From my understanding, attribute entities are only created when an attribute value is defined for the entity.

@samuelvogel
Copy link
Member Author

Yes, the corresponding attributes should always be there. When registering via the frontend and manually creating a customer via the backend the attributes exist as well.

@fixpunkt
Copy link
Member

That's because these UIs create an attribute entity. This is not generally true for entity attributes.

@svenmuennich svenmuennich added bug Issues that describe an unexpected behaviour in an existing functionality. minor "bug" issues that are neither "critical" nor "major". labels Feb 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issues that describe an unexpected behaviour in an existing functionality. minor "bug" issues that are neither "critical" nor "major".
Projects
None yet
Development

No branches or pull requests

3 participants