]> wagnertech.de Git - mfinanz.git/blobdiff - SL/DB/Manager/ContactDepartment.pm
Merge branch 'b-3.6.1' of ../kivitendo-erp_20220811
[mfinanz.git] / SL / DB / Manager / ContactDepartment.pm
index f545f650c6848e700587063e7e5c0c75327561c0..ed1b1b4a013f0e40ca4ef32803b47655dfbacc88 100644 (file)
@@ -7,8 +7,17 @@ use strict;
 
 use parent qw(SL::DB::Helper::Manager);
 
+use SL::DB::Helper::Sorted;
+
 sub object_class { 'SL::DB::ContactDepartment' }
 
 __PACKAGE__->make_manager_methods;
 
+sub _sort_spec {
+  return ( default => [ 'description', 1 ],
+           columns => { SIMPLE => 'ALL',
+                        map { ( $_ => "lower(contact_departments.$_)" ) } qw(description)
+                      });
+}
+
 1;