- Issue created by @vitch
- Status changed to Fixed
about 1 year ago 1:51pm 24 November 2023 Automatically closed - issue fixed for 2 weeks with no activity.
The pdf media thumbnail formatter settings form does not work properly when used on the non default view. It will not load the saved settings and show them correctly. However changing them and saving will set the right values but those will not be loaded next time the field settings are opened.
Install and activate pdf media thumbnail
The issue happens in the _get_setting_values function in the media_pdf_thumbnail.module file.
replace the fourth active line in this function as follows (previous one is commented)
function _get_setting_values(FormStateInterface $form_state) {
/** @var \Drupal\views\Entity\View $view */
$view = $form_state->getStorage()['view'];
$display = $view->getExecutable()->getDisplay();
$inputValues = $form_state->getUserInput();
// $defaultDisplayOptions = $display->default_display->options['fields']['thumbnail__target_id']['settings'];
$defaultDisplayOptions = $display->options['fields']['thumbnail__target_id']['settings'];
review if still applicable to rc3 and patch
Fixed
6.0
Code
Automatically closed - issue fixed for 2 weeks with no activity.