Commit 243333ba authored by xiaohua guan's avatar xiaohua guan Committed by Yas Naoi
Browse files

Issue #3162311 by Xiaohua Guan, yas: Fix an error: "Notice: Undefined index:...

Issue #3162311 by Xiaohua Guan, yas: Fix an error: "Notice: Undefined index: VM ID in Drupal\views\Plugin\views\style\Table->sanitizeColumns()"
parent 7e74746c
Loading
Loading
Loading
Loading
+1 −1
Changes for modules/cloud_service_providers/vmware/config/install/views.view.vmware_vm.yml: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -77,7 +77,7 @@ display:
          description: ''
          columns:
            name: name
            vm_id: 'VM ID'
            vm_id: vm_id
            power_state: power_state
            cpu_count: cpu_count
            memory_size: memory_size
+11
Changes for modules/cloud_service_providers/vmware/vmware.install: 11 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -69,3 +69,14 @@ function vmware_update_8203() {
  ];
  \Drupal::service('cloud')->updateYmlDefinitions($files, 'vmware');
}

/**
 * Update view vmware_vm to fix notice "Undefined index: VM ID".
 */
function vmware_update_8204() {
  // Update view vmware_vm.
  $files = [
    'views.view.vmware_vm.yml',
  ];
  \Drupal::service('cloud')->updateYmlDefinitions($files, 'vmware');
}