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/


Status:Needs review» Reviewed & tested by the community

Just tried the patch and it fixed the issue

+1 on the patch also ! good work

use patch -p5 < filefield_patchs-undefined-index-extension-1601104.patch to fix

new501 bytes

Re-roll with right format

Just 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.

If someone uses the media module with the media_youtube submodule, there would be no extension.

Status:Reviewed & tested by the community» Fixed

Fix committed, thanks for the work.

Status:Fixed» Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.