Closed (fixed)
Project:
Ubercart
Version:
7.x-3.x-dev
Component:
Products
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
14 Aug 2015 at 08:17 UTC
Updated:
14 Jun 2019 at 20:12 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
joelstein commentedComment #3
stefan.r commentedPatch looks great but it would allow for media fields that also allow files/videos so let's make this stricter and add a check for allowed types to be images only...
Comment #4
longwaveWhat else is available in that $instance array - can we check the field type instead of the widget type?
Comment #5
stefan.r commentedwe can't...
Comment #7
longwaveCommitted #3.
Comment #8
joelstein commentedThanks!
Comment #10
retiredpro commentedHi guys,
Patch #3 works if you simply change the image widget from Image to Media Browser. It has the following structure which the patch checks for... $instance['widget']['settings']['allowed_types'] == array('image' => 'image')
If you edit and resave the field though, the allowed_types array changes to the following and no longer passes the condition.
I've updated the patch to check for either array structure.
Comment #11
tr commented??? What's the point here?
Patch in #3 was committed to Ubercart more than three years ago ...