summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authordoktornotor <notordoktor@gmail.com>2015-11-21 22:17:38 +0100
committerdoktornotor <notordoktor@gmail.com>2015-11-21 22:17:38 +0100
commit86f28390fcea1519e087a8d931111d84207628eb (patch)
tree6b7c931f136c1f11cb9d59d77c5b24e7777a4e0b /src
parentea792608e8aab65bdb8635783a394c17de5ddd17 (diff)
downloadpfsense-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')
-rw-r--r--src/usr/local/www/pkg_edit.php2
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'];
}
OpenPOWER on IntegriCloud