Closed (fixed)
Project:
Imagefield Import
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
29 Sep 2009 at 21:30 UTC
Updated:
5 Dec 2009 at 12:30 UTC
Jump to comment: Most recent file
Comments
Comment #1
link0ff commentedNormally (i.e. when a node is saved from the node creation form) filefield_paths_nodeapi called with the "insert" op argument invokes the "filefield_paths_process_file" hook on all modules that implement it (e.g. "imagefield_tokens_filefield_paths_process_file" that replaces 'alt' and 'title' tokens).
But in a batch import filefield_paths_get_fields called from filefield_paths_nodeapi return FALSE, because filefield_filefield_paths_get_fields in filefield_paths/modules/filefield.inc checks for the following condition:
but $node->form_id is not initialized when Imagefield import is used. The attached patch should fix this bug.
Comment #2
mojzis commentedI tested this and I think it still needs some polish, I guess the trouble is when the requested path doesn't exist ? The imagefield moduel itself does create, but not this one :(
Comment #3
wulff commentedThis has been fixed in the latest development version of the module.