]> wagnertech.de Git - mfinanz.git/blobdiff - SL/DB/Manager/ContactTitle.pm
Merge branch 'b-3.6.1' of ../kivitendo-erp_20220811
[mfinanz.git] / SL / DB / Manager / ContactTitle.pm
index f4119a8d1731bcdd7946fe7ddc4c32ec67cfbf82..dea095d38af90ac0b1acbedb6d37b834c4c24379 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::ContactTitle' }
 
 __PACKAGE__->make_manager_methods;
 
+sub _sort_spec {
+  return ( default => [ 'description', 1 ],
+           columns => { SIMPLE => 'ALL',
+                        map { ( $_ => "lower(contact_titles.$_)" ) } qw(description)
+                      });
+}
+
 1;