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

Sensitive form widget does not function correctly inside a repeater #1321

Open
jaxwilko opened this issue Feb 28, 2025 · 2 comments
Open

Sensitive form widget does not function correctly inside a repeater #1321

jaxwilko opened this issue Feb 28, 2025 · 2 comments
Assignees
Milestone

Comments

@jaxwilko
Copy link
Member

jaxwilko commented Feb 28, 2025

Winter CMS Build

dev-develop

PHP Version

8.3

Database engine

MySQL/MariaDB

Plugins installed

Lots :)

Issue description

When using sensitive in a repeater the value gets replaced by the placeholder on save / on view hidden.

Steps to replicate

Make a form with the following:

fields:
    users:
        type: repeater
        form:
            fields:
                username:
                    label: Username
                    type: text
                    span: auto
                password:
                    label: Password
                    type: sensitive
                    span: auto

Workaround

Use text :(

@LukeTowers LukeTowers added this to the 1.2.8 milestone Feb 28, 2025
@bennothommo
Copy link
Member

Use text :(

This made me laugh harder than it should've 😂. Looking into a fix now.

@LukeTowers
Copy link
Member

@bennothommo it's possibly because of the use of post() in the Repeater FormWidget without processing it through the individual FormWidget's getLoadValue(), probably here:

? post($this->formField->getName())

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants