Skip to content
Snippets Groups Projects
Commit 42c8abb4 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #606130 by quicksketch: fixed problem with creating images.

parent 198fd0a9
Branches
Tags
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -347,7 +347,7 @@ function image_field_widget_process($element, &$form_state, $form) {
$item['fid'] = $element['fid']['#value'];
$field = field_info_field($element['#field_name']);
$instance = field_info_instance($element['#field_name'], $element['#bundle']);
$instance = field_info_instance($element['#object_type'], $element['#field_name'], $element['#bundle']);
$settings = $instance['settings'];
$widget_settings = $instance['widget']['settings'];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment