From b1919dd0079116313382a006b9a98db3f0a7ebdf Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Thu, 23 Dec 2004 23:06:26 +0000 Subject: Correctly restore SelectedType selection on wizard load and correctly save out the selected type setting. --- usr/local/www/wizard.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'usr/local/www/wizard.php') diff --git a/usr/local/www/wizard.php b/usr/local/www/wizard.php index c67f13b..6a24413 100755 --- a/usr/local/www/wizard.php +++ b/usr/local/www/wizard.php @@ -153,15 +153,15 @@ if($pkg['step'][$stepid]['stepbeforeformdisplay'] <> "") { $name = strtolower($name); if($field['bindstofield'] <> "") { - $arraynum = ""; - $field_conv = ""; - $field_split = split("->", $field['bindstofield']); - // arraynum is used in cases where there is an array of the same field - // name such as dnsserver (2 of them) - if($field['arraynum'] <> "") $arraynum = "[" . $field['arraynum'] . "]"; - foreach ($field_split as $f) $field_conv .= "['" . $f . "']"; - $toeval = "\$value = \$config" . $field_conv . $arraynum . ";"; - eval($toeval); + $arraynum = ""; + $field_conv = ""; + $field_split = split("->", $field['bindstofield']); + // arraynum is used in cases where there is an array of the same field + // name such as dnsserver (2 of them) + if($field['arraynum'] <> "") $arraynum = "[" . $field['arraynum'] . "]"; + foreach ($field_split as $f) $field_conv .= "['" . $f . "']"; + $toeval = "\$value = \$config" . $field_conv . $arraynum . ";"; + eval($toeval); } if(!$field['combinefieldsend']) -- cgit v1.1