Changeset 7170


Ignore:
Timestamp:
09/05/12 10:59:52 (7 years ago)
Author:
acoutinho
Message:

Ticket #3070 - Incluir o uid do dono de uma agenda ao pesquisa-la

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/prototype/modules/calendar/interceptors/DBMapping.php

    r7164 r7170  
    983983    } 
    984984 
     985    public function addOwner(&$uri, &$params, &$criteria, $original) { 
     986        $owner = Controller::read( array( 'concept' => 'calendarSignature' ) , array('user') ,array( 'filter' => array('AND', array('=', 'isOwner'  ,  '1'), array('=', 'calendar', $params['calendar'])))); 
     987        $params['owner'] = $owner[0]['user']; 
     988    } 
     989 
    985990    public function decodeFindSchedulable(&$uri, &$result, &$criteria, $original) { 
    986991        if ($result && is_array($result)) { 
Note: See TracChangeset for help on using the changeset viewer.