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

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

tseven’s picture

sinasalek’s picture

Status: Needs review » Reviewed & tested by the community

Just tried the patch and it fixed the issue

sw3b’s picture

+1 on the patch also ! good work

andypost’s picture

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

andypost’s picture

Re-roll with right format

Deciphered’s picture

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.

ColdSun’s picture

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

Deciphered’s picture

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.