summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-01-20 20:51:47 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-01-20 20:51:47 +0000
commit67fa245aca88642dfefbbc54bf5bc16237dc0079 (patch)
tree06fc7458815bc21e320fbb7cd8a43fc57018dd76 /usr
parentcc978ad1f3734cf7b2fbe97fafb9c35715dd0d13 (diff)
downloadpfsense-67fa245aca88642dfefbbc54bf5bc16237dc0079.zip
pfsense-67fa245aca88642dfefbbc54bf5bc16237dc0079.tar.gz
Fix multiple selection in RELENG_1 package editor. -HEAD does not suffer from this bug as the codebase is different.
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/pkg_edit.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr/local/www/pkg_edit.php b/usr/local/www/pkg_edit.php
index 34efc8a..0721fef 100755
--- a/usr/local/www/pkg_edit.php
+++ b/usr/local/www/pkg_edit.php
@@ -363,8 +363,9 @@ if ($pkg['tabs'] <> "") {
} else if($pkga['type'] == "select") {
$fieldname = $pkga['fieldname'];
if (isset($pkga['multiple'])) {
- $multiple = 'multiple';
+ $multiple = 'multiple="multiple"';
$items = explode(',', $value);
+ $fieldname .= "[]";
}
else {
$multiple = '';
@@ -376,7 +377,7 @@ if ($pkg['tabs'] <> "") {
print("<select $multiple $size $onchange id=\"$fieldname\" name=\"$fieldname\">\n");
foreach ($pkga['options']['option'] as $opt) {
$selected = '';
- if (in_array($opt['value'], $items)) $selected = 'selected';
+ if (in_array($opt['value'], $items)) $selected = 'selected="selected"';
print("\t<option name=\"{$opt['name']}\" value=\"{$opt['value']}\" $selected>{$opt['name']}</option>\n");
}
OpenPOWER on IntegriCloud