The Thinkery

Not finding what you're looking for? Don't hesitate to contact us!

Before Posting...

Before posting questions in the forums, please be sure to read the FAQs by clicking on the FAQs link in the sidebar product menu. You must be logged in and have a valid subscription to access the SUPPORT FORUMS.
×
Support Policy Notice

As outlined in our Rules section (though never closely followed by our staff!), effective immediately we will no longer be taking time to provide customizations of our products.

× PLEASE DO NOT POST SUPPORT QUESTIONS HERE!

Ability to automatically list employees alphabetically by last name?

More
8 years 2 weeks ago #46129 by onetechn
onetechn replied the topic: Ability to automatically list employees alphabetically by last name?
IANP... but try this.

/components/com_workforce/models/allemployees.php
Line #60 inside the the populateState() function.

Where it sets the default value if nothing is sent via the form:
$orderCol = $app->input->get('filter_order', 'e.ordering');
if (!in_array($orderCol, $this->filter_fields)) {
	$orderCol = 'e.ordering';
}

Adjust $orderCol to use e.lname if it doesn't find anything passed from the form:
$orderCol = $app->input->get('filter_order', 'e.ordering');
if (!in_array($orderCol, $this->filter_fields)) {
	$orderCol = 'e.lname';
}

Please Log in or Create an account to join the conversation.

More
7 years 7 months ago #47599 by bgpa
bgpa replied the topic: Ability to automatically list employees alphabetically by last name?
Excellent concept - is this 'tweak' publicly available or are all requests handled individually? If so can I please be advised on how to implement the 'tweak'

Please Log in or Create an account to join the conversation.

Moderators: vinny
Time to create page: 0.342 seconds