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

[BUG] Fehlende slotId im Contact Form #898

Open
1 task done
innpyt opened this issue Apr 23, 2024 · 0 comments
Open
1 task done

[BUG] Fehlende slotId im Contact Form #898

innpyt opened this issue Apr 23, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@innpyt
Copy link

innpyt commented Apr 23, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

ContactFormRoute.php erwartet slotId, sonst wird es an core.basicInformation.email gesendet.
Und slotId ist irgendwie nicht im /store-api/pwa/page response drin, sowie cms_slot_id, der im Definition auch drin steht.
Id ist laut CmsSlotDefinition ist nicht apiAware.

PS: mit eigene extension habe ich es auch nicht gekriegt.
`class SlotExtension extends EntityExtension
{
public function extendFields(FieldCollection $collection): void
{
$collection->add((new IdField('id', 'id'))->addFlags(new Runtime(), new PrimaryKey(), new Required(), new ApiAware()));
}

public function getDefinitionClass(): string
{
    return CmsSlotDefinition::class;
}

}`
gibt ein 500 mit Undefined array key "cms_slot.id", und ohne Requires/Primary flags kriege ich einfach "id": null.

Expected Behavior

slotId oder cms_slot_id steht im pwa/page response drin

Steps To Reproduce

  • /store-api/pwa/page mit folgende body aufrufen
    {
    "path": "Service/Kontakt",
    "associations": {}
    },

Erwartet:

Environment

- OS: Ubuntu 20.12.2
- Node: 20.12.2
- pnpm:0.0.1
- SW: 6.5.3.3

Anything else?

No response

@innpyt innpyt added the bug Something isn't working label Apr 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: No status
Development

No branches or pull requests

1 participant