Changeset 3910


Ignore:
Timestamp:
03/25/11 09:32:12 (13 years ago)
Author:
rafaelraymundo
Message:

Ticket #1674 - Erro ao delegar evento. Nova correção.

Location:
branches/2.2/calendar
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2/calendar/inc/class.bocalendar.inc.php

    r3728 r3910  
    387387 
    388388                        $this->so->cal->stream->lock(array("phpgw_cal_user")); 
     389                         
     390                        if(substr($idDelegado,-1) == 'U') { 
     391                            $idDelegado = substr($idDelegado,0,-1); 
     392                        } 
     393 
    389394                        $sql = "SELECT * FROM phpgw_cal_user where cal_id=$idEvento and cal_login=$idDelegado"; 
    390395 
  • branches/2.2/calendar/inc/class.uicalendar.inc.php

    r3396 r3910  
    238238 
    239239                function delegate_event($params=NULL) { 
    240                         $ldap = CreateObject('expressoMail1_2.ldap_functions'); 
    241                         $delegated = $ldap->uid2uidnumber($_REQUEST['delegated']); 
     240                        //$ldap = CreateObject('expressoMail1_2.ldap_functions'); 
     241                        //$delegated = $ldap->uid2uidnumber($_REQUEST['delegated']); 
    242242 
    243243                        try { 
    244                                 $this->bo->delegar($_REQUEST['delegator'],$ldap->uid2uidnumber($_REQUEST['delegated'])/*$delegated*/,$_REQUEST['event']); 
     244                                $this->bo->delegar($_REQUEST['delegator'],$_REQUEST['delegated']/*$delegated*/,$_REQUEST['event']); 
    245245                                header("Location: index.php?menuaction=calendar.uicalendar.day&date=".$_REQUEST['date']); 
    246246                        }catch(Exception $e) { 
  • branches/2.2/calendar/js/edit_exmail.js

    r3768 r3910  
    3434                } 
    3535                var options = '###'; 
    36                 if (data) { 
     36                if (data.users && data.users.length > 0) { 
    3737                         
    38                         options += '<option  value="-1" disabled>------------------- '+document.getElementById("txt_users").value+' ------------------ </option>' + data; 
     38                        options += '<option  value="-1" disabled>------------------- '+document.getElementById("txt_users").value+' ------------------ </option>' + data.users; 
    3939                         
    4040                        if(is_firefox_0) 
     
    5151 
    5252        document.getElementById('combo_org').value = context; 
    53         cExecute (path+'.ldap_functions.get_available_users2&valueAsUidNum=1&context='+context+'&type='+type, handler_get_available_users2);     
     53        cExecute (path+'.ldap_functions.get_available_users&context='+context+'&type='+type, handler_get_available_users2);      
    5454} 
    5555 
Note: See TracChangeset for help on using the changeset viewer.