testData: Allow 'what didn't work' to be empty for Platinum ratings
This commit is contained in:
committed by
Chris Morgan
parent
498a2bd4b0
commit
5afa1598df
@@ -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']))
|
||||
|
||||
Reference in New Issue
Block a user