Commit f5ea8480 authored by Chad Barb's avatar Chad Barb

Changed form respit error message:

"no such group" --> "group 'foo' is not in project 'bar'".
parent 8f349249
......@@ -531,7 +531,7 @@ if (!isset($exp_gid) ||
$exp_gid = $exp_pid;
}
if (!TBValidGroup($exp_pid, $exp_gid)) {
RESPIT("Group", "No such Group");
RESPIT("Group", "Group '$exp_gid' is not in project '$exp_pid'!");
}
#
......
......@@ -622,7 +622,8 @@ elseif (!TBValidProject($formfields[pid])) {
elseif (isset($formfields[gid]) &&
strcmp($formfields[gid], "")) {
if (!TBValidGroup($formfields[pid], $formfields[gid])) {
$errors["Group"] = "No such group";
$errors["Group"] = "Group '" . $formfields[gid] . "' " .
"is not in project '" . $formfields[pid] ."'";
}
elseif (!TBProjAccessCheck($uid, $formfields[pid],
$formfields[gid], $TB_PROJECT_MAKEIMAGEID)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment