[dev] Turba Contact display...

Marc Jauvin marc at register4less.com
Tue Dec 3 18:02:22 2002


This patch allow Contact names in turba to be displayed in "Lastname, Firstname"
format (easier to read sorted list)

Index: List.php
===================================================================
RCS file: /repository/turba/lib/List.php,v
retrieving revision 1.25
diff -r1.25 List.php
135c135,140
<             $lastname = $this->guessLastname($object->getValue('name'));
---
>                       $name = $object->getValue('name');
>             $lastname = $this->guessLastname($name);
>                       if (! is_int(strpos($name, ',')) and strlen($name) >
strlen($lastname)) {
>                               $name = preg_replace("|\s+$lastname|", '', $name);
>                               $object->setValue('name', $lastname . ', ' . $name);
>                       }



--<marc

http://Register4less.com
tel.: 450-441-5458



More information about the dev mailing list