Commit 80706c3f authored by Leigh B. Stoller's avatar Leigh B. Stoller
Browse files

Minor bug fixs.

parent 790084f6
......@@ -71,6 +71,7 @@ function INITFORM($formfields, $projlist)
$defaults["exp_id"] = "${copyeid}-${copycount}";
}
$defaults["copyid"] = $copyid;
$defaults["exp_branch"] = 0;
}
else {
unset($copyid);
......@@ -187,7 +188,7 @@ function CHECKFORM(&$formfields, $projlist)
PAGEFOOTER();
exit(1);
}
$formfields[exp_nsfile_contents] = urlencode($file_contents);
$formfields["exp_nsfile_contents"] = urlencode($file_contents);
}
$args = array();
$args[0] = $formfields;
......
......@@ -318,10 +318,10 @@ if ($nsfilelocale == "copyid") {
# Project level check if not a current experiment.
#
if (($experiment = Experiment::LookupByPidEid($copypid, $copyeid))) {
okay = $experiment->AccessCheck($this_user, $TB_EXPT_READINFO);
$okay = $experiment->AccessCheck($this_user, $TB_EXPT_READINFO);
}
elseif (($project = Project::Lookup($copypid))) {
okay = $project->AccessCheck($this_user, $TB_PROJECT_READINFO);
$okay = $project->AccessCheck($this_user, $TB_PROJECT_READINFO);
}
if (! $okay) {
......
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