Skip to content
Permalink
Browse files

Correct the display of a select configuration item that is no longer …

…valid. Display the option text instead of the option value.
  • Loading branch information...
bramley authored and samtuke committed Oct 3, 2019
1 parent 48b5c18 commit fb536cbe54f1f10004eb980e8561ac027a2db533
Showing with 5 additions and 6 deletions.
  1. +5 −6 public_html/lists/admin/configure.php
@@ -158,11 +158,10 @@
}
break;
case 'select':
if (isset($default_config[$configItem]['values'][$value])) {
$displayValue = $default_config[$configItem]['values'][$value];
} else {
$displayValue = $default_config[$configItem]['value'];
}
$index = isset($default_config[$configItem]['values'][$value])
? $value
: $default_config[$configItem]['value'];
$displayValue = $default_config[$configItem]['values'][$index];
break;
default:
$displayValue = nl2br(htmlspecialchars(stripslashes($value)));
@@ -183,7 +182,7 @@
$categoryHTML .= sprintf('<div class="shade%d"><div class="configEdit" id="item_%s"><a href="%s" class="ajaxable" title="%s">%s</a> <b>%s</b> %s</div>',
$alternate, $configItem, PageURL2('configure', '', "id=$configItem"), s('edit this value'),
s('edit'), $default_config[$configItem]['description'], $infotext, $resourceLink);
$categoryHTML .= sprintf('<div id="edit_%s" class="configcontent">%s</div></div>', $configItem,
$displayValue);
if ($alternate == 1) {

0 comments on commit fb536cb

Please sign in to comment.
You can’t perform that action at this time.