Skip to content

Issue 53394: FileInput revert removal of the "-fileUpload" suffix from inputId #2532

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

Merged
merged 4 commits into from
Jul 7, 2025

Conversation

cnathe
Copy link
Contributor

@cnathe cnathe commented Jul 3, 2025

Comment on lines 273 to 276
public FileUploadField getExistingFileField(String fieldIdentifier)
{
return enableAndWait(fieldIdentifier, elementCache().fileField(fieldIdentifier));
String identifier = FileAttachmentContainer.fileUploadIdentifier(fieldIdentifier.toString());
return enableAndWait(identifier, elementCache().fileField(identifier));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should take a CharSequence, not a String.
Also, what is the distinction between getFileField and getExistingFileField? (Maybe more of a question for Xing since she added the latter)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe that the getExistingFileField is to get the file card for an existing file and the getFileField is to get the file upload input when no file exists for the field. I'm renaming getExistingFileField to getExistingFileCard, maybe that will help a bit.

@cnathe cnathe requested a review from labkey-tchad July 3, 2025 21:31
@cnathe cnathe merged commit f46ec8a into release25.7-SNAPSHOT Jul 7, 2025
5 of 6 checks passed
@cnathe cnathe deleted the 25.7_fb_fileInputId53394 branch July 7, 2025 13:52
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