mirror of
https://github.com/unraid/webgui.git
synced 2026-05-01 07:19:32 -05:00
revert hack used to adjust slot number for non-pro key types (emhttp used to hide parity2 if license was not Pro)
This commit is contained in:
@@ -237,13 +237,12 @@ function array_slots() {
|
||||
global $var;
|
||||
$min = max($var['sbNumDisks'], 3);
|
||||
$max = $var['MAX_ARRAYSZ'];
|
||||
$noparity2 = ($var['regTy']=='Pro')?0:1;
|
||||
$out = "<form method='POST' action='/update.htm' target='progressFrame'>";
|
||||
$out .= "<input type='hidden' name='changeSlots' value='Apply'>";
|
||||
$out .= "<select style='min-width:auto' name='SYS_ARRAY_SLOTS' onChange='this.form.submit()'>";
|
||||
for ($n=$min; $n<=$max; $n++) {
|
||||
$selected = ($n == $var['SYS_ARRAY_SLOTS'])? ' selected' : '';
|
||||
$out .= "<option value='$n'{$selected}>".($n-$noparity2)."</option>";
|
||||
$out .= "<option value='$n'{$selected}>$n</option>";
|
||||
}
|
||||
$out .= "</select></form>";
|
||||
return $out;
|
||||
|
||||
Reference in New Issue
Block a user