testData: Allow 'what didn't work' to be empty for Platinum ratings

This commit is contained in:
Alexander Nicolaysen Sørnes
2008-04-11 20:00:42 +02:00
committed by Chris Morgan
parent 498a2bd4b0
commit 5afa1598df

View File

@@ -967,7 +967,10 @@ class testData{
if (empty($aValues['shWhatWorks']))
$errors .= "<li>Please enter what worked.</li>\n";
if (empty($aValues['shWhatDoesnt']))
/* The 'what doesn't work' field can be empty if the rating is Platinum,
because then an app should run flawlessly */
if (!getInput('shWhatDoesnt', $aValues) &&
getInput('sTestedRating', $aValues) != PLATINUM_RATING)
$errors .= "<li>Please enter what did not work.</li>\n";
if (empty($aValues['shWhatNotTested']))