Closed (duplicate)
Project:
Imagefield Crop
Version:
7.x-1.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 Dec 2011 at 18:27 UTC
Updated:
8 Jan 2013 at 03:34 UTC
If a node form is loaded and displayed using drupal_get_form, then profile crop fields fail.
The solution is to include module_load_include('inc', 'node', 'node.pages'); around line 497 (in the imagefield_crop_widget_process function).
There's probably a better way to do this that detects the type of form the field is embedded in, and loads the needed includes.
Comments
Comment #1
citricguy commentedI can confirm. It effects more than just the Profile fields though, it includes any form that needs module_load_include('inc', 'node', 'node.pages') to load
This extends into the 2.x series as well.
Comment #2
citricguy commentedI can also confirm that aiquandol's solution does work. I agree though that there must be a better way to fix this. Fix also works in 2.x
Comment #3
citricguy commentedWorking Patch available at http://drupal.org/node/1358474#comment-6083610
Comment #4
joetsuihk commented