"fixed wrong increment of row counter, as mentioned by sgelman(at)rtr.tu-darmstadt.de on the german list"

This commit is contained in:
Ralf Becker 2010-03-13 09:55:29 +00:00
parent 5b4f0076f2
commit 30f48939b8

View File

@ -1066,19 +1066,19 @@ class calendar_uiforms extends calendar_ui
'uid' => $member,
'status' => 'G',
);
$readonlys[$row.'[quantity]'] = $readonlys["delete[$member]"] = true;
$content['participants'][$row++]['title'] =
$content['participants'][$row]['title'] =
$GLOBALS['egw']->common->grab_owner_name($member);
// read access is enought to invite participants
// but you edit rights to change status
if (!$this->bo->check_perms(EGW_ACL_EDIT,0,$member))
{
$readonlys[$row.'[quantity]'] = $readonlys["delete[$member]"] =$readonlys[$row]['status']= true;
$readonlys[$row.'[quantity]'] = $readonlys["delete[$member]"] = $readonlys[$row]['status']= true;
}
else
{
$readonlys[$row.'[quantity]'] = $readonlys["delete[$member]"] = true;
}
++$row;
}
}
}