mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-05 13:00:14 +01:00
Bugfix: user was not setted when forms were launched, this lett multiple users run the same activity on the same instance at the same time. WARNING:: You should recompile all your activities to fix the bug.
This commit is contained in:
parent
3edee1577f
commit
f8b10f7097
@ -13,8 +13,8 @@ if(empty($instance->instanceId)) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Set the current user for this activity
|
// Set the current user for this activity
|
||||||
if(isset($user) && !empty($instance->instanceId) && !empty($activity->activityId)) {
|
if(isset($GLOBALS['user']) && !empty($instance->instanceId) && !empty($activity_id)) {
|
||||||
$instance->setActivityUser($activity->activityId,$user);
|
$instance->setActivityUser($activity_id,$GLOBALS['user']);
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
@ -13,8 +13,8 @@ if(empty($instance->instanceId)) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Set the current user for this activity
|
// Set the current user for this activity
|
||||||
if(isset($user) && !empty($instance->instanceId) && !empty($activity->activityId)) {
|
if(isset($GLOBALS['user']) && !empty($instance->instanceId) && !empty($activity_id)) {
|
||||||
$instance->setActivityUser($activity->activityId,$user);
|
$instance->setActivityUser($activity_id,$GLOBALS['user']);
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
@ -13,8 +13,8 @@ if(empty($instance->instanceId)) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Set the current user for this activity
|
// Set the current user for this activity
|
||||||
if(isset($user) && !empty($instance->instanceId) && !empty($activity->activityId)) {
|
if(isset($GLOBALS['user']) && !empty($instance->instanceId) && !empty($activity_id)) {
|
||||||
$instance->setActivityUser($activity->activityId,$user);
|
$instance->setActivityUser($activity_id,$GLOBALS['user']);
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
@ -13,8 +13,8 @@ if(empty($instance->instanceId)) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Set the current user for this activity
|
// Set the current user for this activity
|
||||||
if(isset($user) && !empty($instance->instanceId) && !empty($activity->activityId)) {
|
if(isset($GLOBALS['user']) && !empty($instance->instanceId) && !empty($activity_id)) {
|
||||||
$instance->setActivityUser($activity->activityId,$user);
|
$instance->setActivityUser($activity_id,$GLOBALS['user']);
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
@ -13,8 +13,8 @@ if(empty($instance->instanceId)) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Set the current user for this activity
|
// Set the current user for this activity
|
||||||
if(isset($user) && !empty($instance->instanceId) && !empty($activity->activityId)) {
|
if(isset($GLOBALS['user']) && !empty($instance->instanceId) && !empty($activity_id)) {
|
||||||
$instance->setActivityUser($activity->activityId,$user);
|
$instance->setActivityUser($activity_id,$GLOBALS['user']);
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
Loading…
Reference in New Issue
Block a user