Unverified Commit 71f4885c authored by Alex Pott's avatar Alex Pott
Browse files

fix: #3574506 Sorting by Views result counter causes ORDER BY unknown

By: mike-michal
By: quietone
By: lendude
By: sivaji_ganesh_jojodae
By: alexpott
By: smustgrave
parent cd3350de
Loading
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -49,6 +49,7 @@ public function viewsData(): array {
      'help' => $this->t('Displays the actual position of the view result'),
      'field' => [
        'id' => 'counter',
        'click sortable' => FALSE,
      ],
    ];
    $data['views']['area'] = [
+7 −0
Original line number Diff line number Diff line
@@ -54,3 +54,10 @@ function views_removed_post_updates(): array {
    'views_post_update_add_date_default_arguments' => '12.0.0',
  ];
}

/**
 * Clear cache to apply non-sortable counter field change.
 */
function views_post_update_counter_field_not_sortable(): void {
  // Empty update to trigger a cache rebuild so updated Views data is applied.
}