Changeset 1084 for trunk/common


Ignore:
Timestamp:
12/21/09 17:09:07 (2 years ago)
Author:
bogdan2412
Message:

Script to add author tags to tasks.

Tries and determine each author correctly for tasks with multiple ones and groups together different spellings of names (for example Baltescu Paul and Paul-Dan Baltescu) :P

Also makes task_edit controller update author in ia_task to reflect the tags.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/common/db/tags.php

    r1081 r1084  
    2525        $query .= sprintf(" WHERE %s", implode(" AND ", $where)); 
    2626    } 
     27    $query .= " ORDER BY name"; 
    2728    return db_fetch_all($query); 
    2829} 
     
    4748        FROM ia_%s_tags AS obj_tags 
    4849        LEFT JOIN ia_tags AS tags ON obj_tags.tag_id = tags.id 
    49         WHERE %s_id = %s%s%s", 
     50        WHERE %s_id = %s%s%s 
     51        ORDER BY tag_name", 
    5052        db_escape($obj), db_escape($obj), db_escape($obj), 
    5153        db_quote($obj_id), $where_type, $where_parent 
Note: See TracChangeset for help on using the changeset viewer.