From 5afa1598df01487ce37b022bbdbb30eb73b2dcfb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20Nicolaysen=20S=C3=B8rnes?= Date: Fri, 11 Apr 2008 20:00:42 +0200 Subject: [PATCH] testData: Allow 'what didn't work' to be empty for Platinum ratings --- include/testData.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/testData.php b/include/testData.php index ed24ead..0892d5a 100644 --- a/include/testData.php +++ b/include/testData.php @@ -967,7 +967,10 @@ class testData{ if (empty($aValues['shWhatWorks'])) $errors .= "
  • Please enter what worked.
  • \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 .= "
  • Please enter what did not work.
  • \n"; if (empty($aValues['shWhatNotTested']))