Changeset 6585 for branches


Ignore:
Timestamp:
06/22/12 16:41:40 (7 years ago)
Author:
eduardow
Message:

Ticket #2856 - Problema ao criar um gerente no expresso Admin.

Location:
branches/2.4/expressoAdmin1_2
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/2.4/expressoAdmin1_2/inc/class.db_functions.inc.php

    r6196 r6585  
    769769                 
    770770                //Deleta todas as acls do Gerente 
    771                 $this->db->delete('phpgw_expressoadmin_acls',array('manager_lid' => $params['manager_lid'],'context' => $params['context'])); 
     771                $this->db->delete('phpgw_expressoadmin_acls',array('manager_lid' => $params['manager_lid'],'context' => $params['old_url_context']));  
    772772 
    773773                //Insere novas regras 
  • branches/2.4/expressoAdmin1_2/inc/class.uimanagers.inc.php

    r6506 r6585  
    236236                function edit_managers() 
    237237                { 
     238                        echo "<input type='hidden' name='old_url_context_aux' value='".$_GET['context']."'>";            
     239 
    238240                        // Caso nao seja admin, sai. 
    239241                        if (!$GLOBALS['phpgw']->acl->check('run',1,'admin')) 
  • branches/2.4/expressoAdmin1_2/js/jscode/managers.js

    r5174 r6585  
    8282                else 
    8383                { 
     84                var old_url_context = document.createElement("INPUT");  
     85                old_url_context.type = "hidden";  
     86                old_url_context.name = "old_url_context";  
     87                old_url_context.value = $("input[name=old_url_context_aux]").val();  
     88                          
     89                $(document.forms[0]).find("div").append(old_url_context);  
     90 
    8491                        if (type == 'add') 
    8592                                cExecuteForm ("$this.manager.create", document.forms[0], handler_createsave_manager); 
Note: See TracChangeset for help on using the changeset viewer.