mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-24 11:51:43 +02:00
Fix setting of context in delete and update - very important
This commit is contained in:
parent
c11807d24a
commit
8e2baeb263
@ -521,6 +521,7 @@
|
|||||||
|
|
||||||
function update($id,$owner,$fields)
|
function update($id,$owner,$fields)
|
||||||
{
|
{
|
||||||
|
global $phpgw_info;
|
||||||
// First make sure that id number exists
|
// First make sure that id number exists
|
||||||
$sri = ldap_search($this->ldap, $phpgw_info["server"]["ldap_contact_context"], "uidnumber=".$id);
|
$sri = ldap_search($this->ldap, $phpgw_info["server"]["ldap_contact_context"], "uidnumber=".$id);
|
||||||
$ldap_fields = ldap_get_entries($this->ldap, $sri);
|
$ldap_fields = ldap_get_entries($this->ldap, $sri);
|
||||||
@ -553,6 +554,7 @@
|
|||||||
// This is where the real work of delete() is done, shared class file contains calling function
|
// This is where the real work of delete() is done, shared class file contains calling function
|
||||||
function delete_($id)
|
function delete_($id)
|
||||||
{
|
{
|
||||||
|
global $phpgw_info;
|
||||||
$sri = ldap_search($this->ldap, $phpgw_info["server"]["ldap_contact_context"], "uidnumber=".$id);
|
$sri = ldap_search($this->ldap, $phpgw_info["server"]["ldap_contact_context"], "uidnumber=".$id);
|
||||||
$ldap_fields = ldap_get_entries($this->ldap, $sri);
|
$ldap_fields = ldap_get_entries($this->ldap, $sri);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user