Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Media tries to deal with a form that is not module-specific therefore the warning/notice shows up:
Notice: Undefined index: instance in media_form_field_ui_field_edit_form_alter() (Line 364
Shouldn't these lines be wrapped by a condition to check that this really is a media form?
I'm using commerce and dpm says here field is of type commerce_line_item_reference.
Comment | File | Size | Author |
---|---|---|---|
#3 | media-commerce-price-field-2597754-3.patch | 687 bytes | y_h |
|
Comments
Comment #2
tascComment #3
y_h CreditAttribution: y_h commentedI've got a similar issue in the same function when editing a commerce_price field:
so i thought i'd post it here with a patch.
Comment #4
joseph.olstadComment #5
donapis CreditAttribution: donapis commentedHi,
Patch #3 is working for me.
Comment #6
joseph.olstadpatch looks good thanks.
Comment #8
joseph.olstadfixed in 7.x-2.x dev ... Not serious enough to warrant a release tag on its own. But safe enough to commit to dev , harmless check.
Thanks!
Comment #10
joseph.olstadThis was included in 7.x-2.0 , tagged and released today, april 6th 2017