Closed (fixed)
Project:
Track displayed files
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
26 Feb 2015 at 23:34 UTC
Updated:
17 May 2016 at 08:44 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
edodes commentedHi,
I solved this problem. That field in view is defined as numeric instead of date.
Edit the file track_da_files.views.in situated in track_da_files/includes/views folder.
Change views_handler_field_numeric with views_handler_field_date value :
// time.
$table['track_da_files']['time'] = array(
'title' => t('Time'),
'help' => t('Time'),
'field' => array(
'handler' => 'views_handler_field_numeric',
'help' => t('Time'),
'click sortable' => true,
),
'filter' => array(
'handler' => 'views_handler_filter_numeric',
'allow empty' => true,
'help' => t('Filter on Time'),
),
'argument' => array(
'handler' => 'views_handler_argument_numeric',
'help' => t('Time'),
),
with
// time.
$table['track_da_files']['time'] = array(
'title' => t('Time'),
'help' => t('Time'),
'field' => array(
'handler' => 'views_handler_field_date',
'help' => t('Time'),
'click sortable' => true,
),
'filter' => array(
'handler' => 'views_handler_filter_date',
'allow empty' => true,
'help' => t('Filter on Time'),
),
'argument' => array(
'handler' => 'views_handler_argument_date',
'help' => t('Time'),
),
Comment #2
edodes commentedComment #4
oksana-c commentedCreated a patch with edodes code.
Marking this as "Needs Review" because the patch is not yet committed in dev.
Comment #6
oksana-c commentedadjusted patch format
Comment #7
oksana-c commentedComment #9
oksana-c commentedok, learning on my own mistakes. This time should pass the test...
Comment #11
oksana-c commentedComment #13
federiko_ commentedThank you all for your contribution.
oksana-c , your last patch has been commited in stable release of the module.