Module: appdb Branch: master Commit: 5afa1598df01487ce37b022bbdbb30eb73b2dcfb URL: http://source.winehq.org/git/appdb.git/?a=commit;h=5afa1598df01487ce37b022bb...
Author: Alexander Nicolaysen Sørnes alex@thehandofagony.com Date: Fri Apr 11 20:00:42 2008 +0200
testData: Allow 'what didn't work' to be empty for Platinum ratings
---
include/testData.php | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-)
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 .= "<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']))