Ignore:
Timestamp:
May 12, 2011 4:18:19 PM (2 years ago)
Author:
thomascube <thomas@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
Children:
b912158
Parents:
caedd52
Message:

Improve display name composition when saving contacts (#1487143), with plugin-support; allow empty names in sql address book, fall back to e-mail address in listing and vcard export

File:
1 edited

Legend:

Unmodified
Added
Removed
  • program/include/rcube_contacts.php

    r569f830 re848180  
    185185                ($this->group_id ? " AND m.contactgroup_id=?" : ""). 
    186186                ($this->filter ? " AND (".$this->filter.")" : "") . 
    187             " ORDER BY c.name", 
     187            " ORDER BY c.name, c.email", 
    188188            $start_row, 
    189189            $length, 
     
    411411    public function validate($save_data) 
    412412    { 
    413         // check for name input 
     413        // validate e-mail addresses 
    414414        $valid = parent::validate($save_data); 
    415415 
    416         // require at least one e-mail address (syntax check is done later in save.inc) 
     416        // require at least one e-mail address (syntax check is already done) 
    417417        if ($valid && !array_filter($this->get_col_values('email', $save_data, true))) { 
    418418            $this->set_error('warning', 'noemailwarning'); 
Note: See TracChangeset for help on using the changeset viewer.