-
-
Notifications
You must be signed in to change notification settings - Fork 814
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
CRM-21654: Support custom file field on Batch Entry Profile #11520
Conversation
Code looks OK if anyone is up to test it out |
Jenkins re test this please |
I think this is good to merge once @Edzelopez's issue is addressed & test is confirmed to be unrelated |
@eileenmcnaughton @Edzelopez I would treat that file-lost-on-validation-error as a separate issue because that is happening with all core/custom file fields and here's the issue for that https://issues.civicrm.org/jira/browse/CRM-16474 Also CRM-21654 is a paid issue and the client wants to just support the custom file upload in Batch entry form. However, I still tried to fix CRM-16474 but it will take more time as the problem lies in Quickform inability to handle file uploads as a default but I can assure that the fix would be general and will applicable to all kinds of file field. What do you say? |
@Edzelopez I haven't gotten my head into this - I'm happy to merge if you are satisfied. Also pinging @yashodha who seems to have been touching a lot of batch related UI issues |
I think as long as we are addressing the issue of the lost file upload on validation separately, we are good. Could you please merge if everything else looks okay @eileenmcnaughton ? |
I've tested this patch and it's working as expected. I agree we should move forward with this and handle the pre-existing validation issue separately. |
Thanks - merging on @lcdservices & @Edzelopez endorsement. I acknowledge they may be interested parties in this but it's a minor bug fix rather than an improvement with many considerations. |
Any further update on whether point 2 here was ever addressed? From what I see, if a Profile form with a file upload field has a non-inline Validation error (i.e. the page reloads rather than errors inline) then any file previously uploaded to the form is lost, without a warning to the user. |
Overview
There is two issue with batch entry profile related to custom file field:
The screenshot share below highlights the 2nd fix.
Before
After
Technical Details
#2 is an issue for all other file fields in Civi. And doing the minor change in tpl we can atleast show the uploaded filename against that field.