Closed (fixed)
Project:
Ubercart
Version:
6.x-2.0-beta1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
18 Dec 2008 at 22:20 UTC
Updated:
16 Jan 2009 at 18:20 UTC
Jump to comment: Most recent file
Right now it's setting things up using the filefield widget instead of the imagefield widget, and it needs to enable custom ALT and Title text by default. Tim Hill had a patch going here that he may be able to re-roll to kill both of these birds with one stone.
http://www.ubercart.org/issue/8110/ucproductmodule_creating_filefield_in...
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | image_field_create_fix.patch | 550 bytes | thill_ |
Comments
Comment #1
Island Usurper commentedReminder to myself to do this in the morning.
Comment #2
thill_ commentedHere is the one patch that makes the title and alt tags enabled and corrects the filefield vs imagefield type error, enjoy
Comment #3
Island Usurper commentedThanks, Tim. That's what it needs.
Comment #5
Island Usurper commentedIt turns out that the actual field type should be "image", since that's what imagefield.module defines. Ryan had problems with a default value without it.
Somehow, I'd neglected to actually change the field type the first time, anyway. :( So, now it really is fixed.
Comment #6
sgriffin commentedIs there a patch released? Can field_image_cache be removed and readded at an image type or changed directly in the db to image in case of existing nodes?
Comment #7
Island Usurper commentedI didn't think there was a need for a patch. You can use the one posted earlier, but just change 'imagefield' to 'image'. Or find that line in the module file.
Removing field_image_cache and letting Ubercart rebuild it will work, though it's probably easier to change the "type" column of content_node_field. You also won't lose the file associations that way, either.
Comment #8
sgriffin commentedNevermind, I change content_node_field/field_image_cache type to image, and added the field to another CT to save it "maybe redundant", and removed and readded it back to the ubernode. All looks well and image like now.