Commit 3a668bcb authored by Leigh B Stoller's avatar Leigh B Stoller

Pass through fully bound rspecs (there will be no aggregates in the form

data) to the backend.
parent bdd28f4a
......@@ -564,7 +564,7 @@ function SPITFORM($formfields, $newuser, $errors)
($ISCLOUD || ISADMIN() || STUDLY())) {
$am_options = "";
while (list($am, $urn) = each($am_array)) {
$amlist[] = $am;
$amlist[$urn] = $am;
$selected = "";
if ($formfields["where"] == $am) {
$selected = "selected";
......@@ -891,9 +891,9 @@ if ($this_user && ($ISCLOUD || ISADMIN() || STUDLY())) {
array_key_exists($formfields["where"], $am_array)) {
$aggregate_urn = $am_array[$formfields["where"]];
}
else {
$errors["where"] = "Invalid Aggregate";
}
# A fully bound rspec will not have aggregate settings, but we let
# the backend deal with it. If the JS code is working, this should
# never happen by mistake.
}
if (count($errors)) {
SPITFORM($formfields, false, $errors);
......
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