Changeset 6517


Ignore:
Timestamp:
06/15/12 11:13:00 (9 years ago)
Author:
thiago
Message:

Ticket #2856 - Problema ao editar um gerente, resolvido!

Location:
trunk/expressoAdmin1_2
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/expressoAdmin1_2/inc/class.db_functions.inc.php

    r6196 r6517  
    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 
  • trunk/expressoAdmin1_2/inc/class.uimanagers.inc.php

    r6484 r6517  
    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')) 
  • trunk/expressoAdmin1_2/js/jscode/managers.js

    r5174 r6517  
    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.