Skip to content

XWIKI-24221: Same uploaded image is set for all attachmentSelector used in the same form#5386

Open
mathpce wants to merge 3 commits intoxwiki:masterfrom
mathpce:master
Open

XWIKI-24221: Same uploaded image is set for all attachmentSelector used in the same form#5386
mathpce wants to merge 3 commits intoxwiki:masterfrom
mathpce:master

Conversation

@mathpce
Copy link
Copy Markdown
Contributor

@mathpce mathpce commented Apr 13, 2026

Jira URL

https://jira.xwiki.org/browse/XWIKI-24221

Changes

Description

The property reference is used to identify the proper input in the form. So only this input will be updated when the attachment is uploaded, instead of all the ones in the same form.

Clarifications

The property reference is a mandatory parameter of the macro, so it should be a good way to identify the input.

Executed Tests

I have built xwiki-platform/xwiki-platform-core/xwiki-platform-attachment with mvn clean install successfully.

mathpce and others added 2 commits April 13, 2026 17:07
…d in the same form

* only edit the property-reference value associated with the clicked AttachmentSelector button
…ed in the same form

* add escaping of propert name
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

Successfully merging this pull request may close these issues.

2 participants