Fix a typo that caused some input validation to be skipped and added another statement to make ensure that part of the form is validated correctly
This commit is contained in:
committed by
Chris Morgan
parent
be6a19f95e
commit
f2d44f7120
@@ -1015,8 +1015,11 @@ class testData{
|
|||||||
|
|
||||||
// Basic checking of logic. Runs? can obviously only be 'Not Installable'
|
// Basic checking of logic. Runs? can obviously only be 'Not Installable'
|
||||||
// if the application does not install
|
// if the application does not install
|
||||||
if (($aValues['sInstalls'] != "No") && ($aValues['sRuns'] == "Not Installable"))
|
if (($aValues['sInstalls'] != "No") && ($aValues['sRuns'] == "Not installable"))
|
||||||
$errors .= "<li>You can only set Runs? to ‘Not Installable’ if the applicatino’s installer does not work</li>\n";
|
$errors .= "<li>You can only set Runs? to ‘Not installable’ if the application's installer does not work</li>\n";
|
||||||
|
|
||||||
|
if (($aValues['sInstalls'] == "No") && ($aValues['sRuns'] != "Not installable"))
|
||||||
|
$errors .= "<li>You can only set Runs? to ‘Not installable’' if the application's installer does not work</li>\n";
|
||||||
|
|
||||||
return $errors;
|
return $errors;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user