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:
Régis Leroy 2005-03-27 09:03:07 +00:00
parent 3edee1577f
commit f8b10f7097
5 changed files with 10 additions and 10 deletions

View File

@ -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']);
}
?>

View File

@ -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']);
}
?>

View File

@ -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']);
}
?>

View File

@ -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']);
}
?>

View File

@ -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']);
}
?>