Closed (fixed)
Project:
Scald: Media Management made easy
Version:
7.x-1.x-dev
Component:
Media Editorial Element
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
8 Apr 2015 at 14:42 UTC
Updated:
23 Apr 2015 at 14:34 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
nagy.balint commentedThis patch should solve the issue.
@gifad can you check the patch if you think its okey like that (since it affects your line)? It seems the settings should have been gotten from the $context instead of the $form_state.
Comment #2
gifad commented@nagy.balint : Oh, this is not "my" line : I had just cut it from the (now defunct)
function dnd_process_textarea($element, $form_state), which had no context information;Obviously, the
contextargument is a better place to get field instance informations ![Edit] BTW, this makes it work automagically for a field "Description" attached to an atom, which otherwise should have to be fetched from
$form_state['field']['#parents']['atom0']['#fields']['field_description']['und']['instance']['settings']['context_default']!Comment #4
nagy.balint commentedComment #5
gmclelland commentedI'm just confirming the fix removed the errors. Thanks everyone!