Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
This patch fixes the Notice message displayed when generating content via the Devel module.
It simply checks to make sure the value is set, returns null if it doesn't.
Notice: Undefined index: extension in filefield_paths_tokens() (line 56 of /Volumes/Stuff/htdocs/php/undefeated.my/sites/all/modules/filefield_paths/modules/token.inc).
Comment | File | Size | Author |
---|---|---|---|
#5 | filefield_paths-token-1601104.patch | 501 bytes | andypost |
#1 | filefield_patchs-undefined-index-extension-1601104.patch | 637 bytes | tseven |
Comments
Comment #1
tseven CreditAttribution: tseven commentedComment #2
sinasalek CreditAttribution: sinasalek commentedJust tried the patch and it fixed the issue
Comment #3
sw3b CreditAttribution: sw3b commented+1 on the patch also ! good work
Comment #4
andypostuse
patch -p5 < filefield_patchs-undefined-index-extension-1601104.patch
to fixComment #5
andypostRe-roll with right format
Comment #6
Deciphered CreditAttribution: Deciphered commentedJust to confirm, are you uploading a file that has no extension? There's nothing wrong with the patch itself, but I want to confirm it's even necessary before committing it.
Comment #7
ColdSun CreditAttribution: ColdSun commentedIf someone uses the media module with the media_youtube submodule, there would be no extension.
Comment #8
Deciphered CreditAttribution: Deciphered commentedFix committed, thanks for the work.