Skip to content

Commit

Permalink
fix(HumanResources): sort by employe_id dosen´t work
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Feitl authored and paulmhh committed Jun 4, 2024
1 parent 3166979 commit 8056231
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/tine20/HumanResources/Controller/DailyWTReportTests.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,16 @@ public function testCorrectionFilter()
$result = $result->{HumanResources_Model_MonthlyWTReport::FLDS_CORRECTIONS}->getFirstRecord();
$this->assertNotNull($result);
$this->assertSame($monthlyCorrection->getId(), $result->getId());

$paging = new Tinebase_Model_Pagination(array(
'start' => 0,
'limit' => 0,
'sort' => 'employee_id',
'dir' => 'ASC'

));

$result = HumanResources_Controller_MonthlyWTReport::getInstance()->search(null , $paging)->getFirstRecord();
}

public function testCalculateAllReports()
Expand Down
1 change: 1 addition & 0 deletions tine20/HumanResources/Model/Employee.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ class HumanResources_Model_Employee extends Tinebase_Record_Abstract
self::DELEGATED_ACL_FIELD => 'division_id',

'titleProperty' => '{{number}} {{n_fn}}',
self::DEFAULT_SORT_INFO => [self::FIELD => 'number'],
'appName' => 'HumanResources',
'modelName' => self::MODEL_NAME_PART,

Expand Down

0 comments on commit 8056231

Please sign in to comment.