Unverified Commit 1a1999dd 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
(cherry picked from commit 71f4885c)
(cherry picked from commit 76ce09fa)
parent 566aff66
Loading
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -50,6 +50,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
@@ -129,3 +129,10 @@ function views_post_update_block_items_per_page(?array &$sandbox = NULL): void {
function views_post_update_add_date_default_arguments(): void {
  // Empty update to cause a cache rebuild so that schema additions are read.
}

/**
 * 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.
}