diff options
author | doktornotor <notordoktor@gmail.com> | 2015-11-21 22:17:38 +0100 |
---|---|---|
committer | doktornotor <notordoktor@gmail.com> | 2015-11-21 22:17:38 +0100 |
commit | 86f28390fcea1519e087a8d931111d84207628eb (patch) | |
tree | 6b7c931f136c1f11cb9d59d77c5b24e7777a4e0b /src/usr/local/www/pkg_edit.php | |
parent | ea792608e8aab65bdb8635783a394c17de5ddd17 (diff) | |
download | pfsense-86f28390fcea1519e087a8d931111d84207628eb.zip pfsense-86f28390fcea1519e087a8d931111d84207628eb.tar.gz |
Always honor the required tag in package XML fields
Dunno whose idea it was to restrict this to input. WTH really.
Diffstat (limited to 'src/usr/local/www/pkg_edit.php')
-rw-r--r-- | src/usr/local/www/pkg_edit.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/usr/local/www/pkg_edit.php b/src/usr/local/www/pkg_edit.php index 71c18e3..eee16d6 100644 --- a/src/usr/local/www/pkg_edit.php +++ b/src/usr/local/www/pkg_edit.php @@ -151,7 +151,7 @@ if ($_POST) { $reqfields = array(); $reqfieldsn = array(); foreach ($pkg['fields']['field'] as $field) { - if (($field['type'] == 'input') && isset($field['required'])) { + if (isset($field['required'])) { if ($field['fieldname']) { $reqfields[] = $field['fieldname']; } |