Closed (fixed)
Project:
File Upload Options
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
17 Sep 2020 at 14:08 UTC
Updated:
29 May 2022 at 23:19 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
matthiasm11 commentedThe attached patch adds some empty checks to fix this issue.
Comment #3
imclean commentedThanks. I'll try to reproduce the issue.
There are some unrelated changes in the patch. Please leave the variables as camel case.
Comment #4
matthiasm11 commentedHi, thank you for your response!
I'm following the coding standards, I've only altered the variables that are being used in the empty checks needed to fix this issue. There are (a lot of) other violations to the coding standards which I did not fix, because they are indeed unrelated to the patch. A new ticket should be created to fix those. Again, thank you for your quick response!
Comment #5
imclean commentedCoding standards fixes are unrelated to what this patch is trying to achieve. Please start a separate issue for those.
This makes it easier to review the functional changes of the patch.
Comment #6
ankithashettyUpdated the patch in #2 with the changes specified by @imclean in #3...
Certain lines in the modified file (i.e., file_upload_options.module ) had additional spaces at the end, which got auto-corrected on saving. It's included in the patch as well... To help with the patch review, the functional changes made by @matthiasm11 is in the lines between 180 to 190...
Hope this helps in moving the issue forward, Thanks!
Comment #7
imclean commentedThanks @ankithashetty.
I know it's annoying, but please roll these into the coding standards patch. I'd really like to keep the commits clean.
Comment #8
ankithashettyComment #9
imclean commentedThis should probably be
FileSystemInterface::EXISTS_RENAMEto keep the current behaviour.Comment #10
ankithashettyUpdated the above patch and made the coding standard changes in a different issue #3172121: Fix Drupal Coding Standard Errors as requested, kindly review...
Thank you!
Comment #11
imclean commentedCheck out Dreditor to help you see unrelated changes such as whitespace.
Comment #12
imclean commentedSorry I haven't had a chance to reproduce the issue yet.
Comment #14
imclean commentedThank you. This is a fairly straight forward fix. Sorry it's taken so long.