JavaScript sorting by column in tasks

All questions/issues about qdPM installation/usage

Re: JavaScript sorting by column in tasks

Postby kindrosker » Wed Jan 23, 2013 5:33 am

I'm thinking next month
User avatar
kindrosker
Site Admin
 
Posts: 292
Joined: Fri Oct 07, 2011 9:42 am

Re: JavaScript sorting by column in tasks

Postby vfiuchcikicshuusrch » Wed Oct 31, 2018 5:20 pm

kindrosker wrote:code is different

for 7.0 version see
core\apps\frontend\modules\tasks\actions\components.class.php line 139
you have to add order by due date to dropdown
for example
Code: Select all
$this->orderTasksValuesList['due_date'] = I18NText::__('Due Date');


then see
core\apps\frontend\modules\tasks\actions\actions.class.php line 127
you have to add code
Code: Select all
case 'due_date':
          $c->addAscendingOrderByColumn(TasksPeer::DUE_DATE);
          $c->addAscendingOrderByColumn(TasksPeer::NAME);
        break;


if you want to change default sorting by due date then see
core\apps\frontend\modules\tasks\actions\actions.class.php line 40
and change it to
Code: Select all
$this->getUser()->setAttribute('orderTasksBy', 'due_date');


How can I do this on 9.1 version ?
User avatar
vfiuchcikicshuusrch
 
Posts: 6
Joined: Thu May 05, 2016 8:47 pm
Location: I-Town

Previous

Return to General Discussion

Who is online

Users browsing this forum: No registered users and 4 guests