Ignore:
Timestamp:
11/27/09 15:43:28 (14 years ago)
Author:
eduardoalex
Message:

Ticket #682 - Adicionada verificacao se o delegado ja esta no evento

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/calendar/inc/class.uicalendar.inc.php

    r1670 r1720  
    232232 
    233233                function delegate_event($params=NULL) { 
    234                         //$ldap = CreateObject('expressoMail1_2.ldap_functions'); 
    235                         //$delegated = $ldap->uid2uidnumber($_REQUEST['delegated']); 
    236 system('echo "request[date]: '.$_REQUEST['date'].'" >>/tmp/controle'); 
     234                        $ldap = CreateObject('expressoMail1_2.ldap_functions'); 
     235                        $delegated = $ldap->uid2uidnumber($_REQUEST['delegated']); 
     236 
    237237                        try { 
    238                                 $this->bo->delegar($_REQUEST['delegator'],$_REQUEST['delegated']/*$delegated*/,$_REQUEST['event']); 
     238                                $this->bo->delegar($_REQUEST['delegator'],$ldap->uid2uidnumber($_REQUEST['delegated'])/*$delegated*/,$_REQUEST['event']); 
    239239                                header("Location: index.php?menuaction=calendar.uicalendar.day&date=".$_REQUEST['date']); 
    240240                        }catch(Exception $e) { 
    241241                                header("Location: index.php?menuaction=calendar.uicalendar.screen_delegate_event&id_event=". $_REQUEST["event"]."&delegator=".$_REQUEST["delegator"]."&date=".$_REQUEST["date"]."&error=1"); 
    242242                        } 
    243  
    244  
    245243                } 
    246244 
Note: See TracChangeset for help on using the changeset viewer.