Browse Source

Fix warning by checking whether key is set. (#909)

* Fix warning by checking whether key is set.

* Adjust plugin check in integer-weight views hook.
pull/916/head 2.5.1
Jason Hildebrand 2 years ago committed by GitHub
parent
commit
f71f6dc2e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      islandora.module

2
islandora.module

@ -515,7 +515,7 @@ function islandora_preprocess_views_view_table(&$variables) {
// Check for a weight selector field.
foreach ($variables['view']->field as $field_key => $field) {
if ($field->options['plugin_id'] == 'integer_weight_selector') {
if ($field->getPluginId() == 'integer_weight_selector') {
// Check if the weight selector is on the first column.
$is_first_column = array_search($field_key, array_keys($variables['view']->field)) > 0 ? FALSE : TRUE;

Loading…
Cancel
Save