contrib\imagecache.inc code
brenk28 - March 20, 2009 - 21:17
| Project: | Install Profile API |
| Version: | 6.x-2.0 |
| Component: | Other |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Description
Based on the fact that it is looking for 'action' as index to the passed array, I think the function install_imagecache_add_preset, line 30 needs to be changed from:
$action['data'] = $data;
to
$action['data'] = $data['data'];
Otherwise, the data does not get properly inserted into the table.
Also, as currently structured, the comment up top is incorrect: "Each action is itself an array with indexes of action, weight" ... it does not look for 'weight' index

#1
Visually confirmed by backtracing the
imagecache_action_save()function inimagecache.module.I'm not using
install_imagecache_add_preset()in any of my code. Could somebody please test this patch?#2
Weird .. no patch upload, here it is again.
#3
Committing this bug fix, finally!
#4
Automatically closed -- issue fixed for 2 weeks with no activity.