Commit f06be055 authored by Leigh Stoller's avatar Leigh Stoller

Another minor change to new project; Why? can take newlines cause its

a multiline text field.
parent b7afc2a5
......@@ -218,6 +218,10 @@ function TBvalid_country($token) {
function TBvalid_description($token) {
return TBvalid_userdata($token);
}
function TBvalid_why($token) {
return TBcheck_dbslot($token, "projects", "why",
TBDB_CHECKDBSLOT_WARN|TBDB_CHECKDBSLOT_ERROR);
}
function TBvalid_integer($token) {
return TBcheck_dbslot($token, "default", "int",
TBDB_CHECKDBSLOT_WARN|TBDB_CHECKDBSLOT_ERROR);
......
......@@ -747,10 +747,10 @@ elseif (! TBvalid_num_ron($formfields[proj_ronpcs])) {
}
if (!isset($formfields[proj_why]) ||
strcmp($formfields[proj_why], "") == 0) {
$errors["Why?"] = "Missing Field";
$errors["How and Why?"] = "Missing Field";
}
elseif (! TBvalid_description($formfields[proj_why])) {
$errors["Why?"] = TBFieldErrorString();
elseif (! TBvalid_why($formfields[proj_why])) {
$errors["How and Why?"] = TBFieldErrorString();
}
if ((!isset($formfields[proj_public]) ||
strcmp($formfields[proj_public], "checked")) &&
......
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