Change the data structure for exposed_sort

Created on 3 November 2023, about 1 year ago

Problem/Motivation

The exposed sort is now saved with an extra key 'value'. Remove this as this is easier to follow and uses less database.

Steps to reproduce

-

Proposed resolution

Refactor the code so the exposed_sort is saving the value directly to the identifier.

Remaining tasks

Create and review patch.

User interface changes

-

API changes

-

Data model changes

The data is changed from

$exposed_sort = [
  'sort_by' => [
    'value' => xxx,
  ],
  'sort_order' => [
    'value' => xxx,
  ],
];

to

$exposed_sort = [
  'sort_by' => xxx,
  'sort_order' => xxx,
];
📌 Task
Status

Fixed

Version

1.0

Component

Code

Created by

🇧🇪Belgium tim-diels Belgium 🇧🇪

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024