- Issue created by @Kurt.j
- πΊπΈUnited States Kurt.j
I compared the 2.0 version with 8.x-1.2 version and found that a critical function is missing:
/**
* Implements hook_views_data_alter().
*
* Alter the table and field information from hook_views_data().
*
* @param array $data
* An array of all information about Views tables and fields, collected from
* hook_views_data(), passed by reference.
*
* @see hook_views_data()
*/
function views_sort_expression_views_data_alter(array &$data) {
$data['views']['views_sort_expression'] = [
'title' => t('Expression'),
'help' => t('Allow you to use an SQL expression.'),
'sort' => [
'id' => 'views_sort_expression',
],
];
}The above was deleted from the .module file for some reason. You may want to put that back in and push it out ASAP. With out it the Expression field never lands in the the Sort Criteria making this module do nothing really.
-
hanoii β
committed c081a9ab on 2.x
revert: Issue #3446307: No "Expression" field in Sort Criteria' Partial...
-
hanoii β
committed c081a9ab on 2.x
- Status changed to Fixed
6 months ago 6:02pm 9 May 2024 - π¦π·Argentina hanoii π¦π·UTC-3
Thanks! For some reason I thought that hook was not needed anymore and the sort plugin was discovered on its own. I even searched for it, but something must I obviously missed something. Apologies, 2.0.1 is out!
- πΊπΈUnited States Kurt.j
Thanks Dude for the speedy response! I appreciate it!
Automatically closed - issue fixed for 2 weeks with no activity.