mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-23 07:09:20 +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
|
||||
if(isset($user) && !empty($instance->instanceId) && !empty($activity->activityId)) {
|
||||
$instance->setActivityUser($activity->activityId,$user);
|
||||
if(isset($GLOBALS['user']) && !empty($instance->instanceId) && !empty($activity_id)) {
|
||||
$instance->setActivityUser($activity_id,$GLOBALS['user']);
|
||||
}
|
||||
|
||||
?>
|
||||
|
@ -13,8 +13,8 @@ if(empty($instance->instanceId)) {
|
||||
}
|
||||
}
|
||||
// Set the current user for this activity
|
||||
if(isset($user) && !empty($instance->instanceId) && !empty($activity->activityId)) {
|
||||
$instance->setActivityUser($activity->activityId,$user);
|
||||
if(isset($GLOBALS['user']) && !empty($instance->instanceId) && !empty($activity_id)) {
|
||||
$instance->setActivityUser($activity_id,$GLOBALS['user']);
|
||||
}
|
||||
|
||||
?>
|
||||
|
@ -13,8 +13,8 @@ if(empty($instance->instanceId)) {
|
||||
}
|
||||
}
|
||||
// Set the current user for this activity
|
||||
if(isset($user) && !empty($instance->instanceId) && !empty($activity->activityId)) {
|
||||
$instance->setActivityUser($activity->activityId,$user);
|
||||
if(isset($GLOBALS['user']) && !empty($instance->instanceId) && !empty($activity_id)) {
|
||||
$instance->setActivityUser($activity_id,$GLOBALS['user']);
|
||||
}
|
||||
|
||||
?>
|
||||
|
@ -13,8 +13,8 @@ if(empty($instance->instanceId)) {
|
||||
}
|
||||
}
|
||||
// Set the current user for this activity
|
||||
if(isset($user) && !empty($instance->instanceId) && !empty($activity->activityId)) {
|
||||
$instance->setActivityUser($activity->activityId,$user);
|
||||
if(isset($GLOBALS['user']) && !empty($instance->instanceId) && !empty($activity_id)) {
|
||||
$instance->setActivityUser($activity_id,$GLOBALS['user']);
|
||||
}
|
||||
|
||||
?>
|
||||
|
@ -13,8 +13,8 @@ if(empty($instance->instanceId)) {
|
||||
}
|
||||
}
|
||||
// Set the current user for this activity
|
||||
if(isset($user) && !empty($instance->instanceId) && !empty($activity->activityId)) {
|
||||
$instance->setActivityUser($activity->activityId,$user);
|
||||
if(isset($GLOBALS['user']) && !empty($instance->instanceId) && !empty($activity_id)) {
|
||||
$instance->setActivityUser($activity_id,$GLOBALS['user']);
|
||||
}
|
||||
|
||||
?>
|
||||
|
Loading…
Reference in New Issue
Block a user