Fix showing the right subscription permissions in upgrade process - refs CT#7849

1.10.x
Yannick Warnier 9 years ago
parent 5b0dae5f13
commit cd11e66053
  1. 9
      main/install/install.lib.php

@ -1688,8 +1688,13 @@ function display_configuration_settings_form(
$html .= '<div class="form-group">';
$html .= '<label class="col-sm-6 control-label">'. get_lang('AllowSelfRegProf') .'</label>
<div class="col-sm-6">';
if ($installType == 'update'){
$html .= '<input type="hidden" name="allowSelfRegProf" value="'. $allowSelfRegProf.'" />'. $allowSelfRegProf? get_lang('Yes') : get_lang('No');
if ($installType == 'update') {
if ($allowSelfRegProf == 'true') {
$label = get_lang('Yes');
} else {
$label = get_lang('No');
}
$html .= '<input type="hidden" name="allowSelfRegProf" value="'. $allowSelfRegProf.'" />'. $label;
} else {
$html .= '<div class="control-group">
<label class="checkbox-inline">

Loading…
Cancel
Save