SimpleDesk

SimpleDesk! => SimpleDesk Tracker => Topic started by: tfs on September 07, 2011, 03:51:25 PM

Title: [Fixed] 2.0 Sorting Assigned To Me grid by status doesn't work
Post by: tfs on September 07, 2011, 03:51:25 PM
When I try to sort by the "Status" column in the "Assigned to Me grid", it actually sorts by the "Started By" column.
Title: Re: 2.0 Sorting Assigned To Me grid by status doesn't work
Post by: tfs on October 31, 2011, 12:48:57 PM
Arantor posted a fix for this on git.

In: sd_template/SimpleDesk.template.php

Change This:
<td width="17%" class="shd_nowrap"><img src="', $settings['default_images_url'], '/simpledesk/status.png" class="shd_smallicon" alt="" /> ', template_shd_menu_header('starter', $txt['shd_ticket_status']), '</td>';

To This:
<td width="17%" class="shd_nowrap"><img src="', $settings['default_images_url'], '/simpledesk/status.png" class="shd_smallicon" alt="" /> ', template_shd_menu_header('status', $txt['shd_ticket_status']), '</td>';

I have not tested this fix, but I have a high confidence level that it's correct.
Title: Re: 2.0 Sorting Assigned To Me grid by status doesn't work
Post by: tfs on October 31, 2011, 05:13:37 PM
As long as I'm posting the fix for that one, I may as well post the other fix in the same file where the department link wasn't always included properly in the grid sorting.

Change this:
$html = '<a href="' . $scripturl . '?action=helpdesk;sa=' . $_REQUEST['sa'] . ($_REQUEST['sa'] == 'viewblock' ? ';block=' . $_REQUEST['block'] : '') . $link . '">' . $string . '</a> ';

To this:
$html = '<a href="' . $scripturl . '?action=helpdesk;sa=' . $_REQUEST['sa'] . ($_REQUEST['sa'] == 'viewblock' ? ';block=' . $_REQUEST['block'] : '') . $link . $context['shd_dept_link'] . '">' . $string . '</a> ';

Title: Re: 2.0 Sorting Assigned To Me grid by status doesn't work
Post by: SleePy on November 01, 2011, 12:35:17 PM
I merged his commit last night.  Although I realize I must have a bug with something since it didn't pick up the commit.  I thought It would work from how I used the commit data (it has tracking for each commit author rather than the one who pushed the commit).