Fix boolean display with YAML backend (Fixes: #1684)

environments/ppa-mbqj77/deployments/718^2
Xavier 6 years ago
parent 5a5572ec1f
commit 8144ef9132
  1. 1
      lemonldap-ng-common/lib/Lemonldap/NG/Common/Conf/Backends/YAMLFile.pm
  2. 2
      lemonldap-ng-manager/site/htdocs/static/forms/simpleInputContainer.html

@ -7,6 +7,7 @@ use Encode;
our $VERSION = '2.0.0';
our $initDone;
$YAML::Numify = 1;
sub Lemonldap::NG::Common::Conf::_yamlLock {
my ( $self, $cfgNum ) = @_;

@ -28,7 +28,7 @@
<td ng-if="n.type=='bool'">
<div class="input-group-solid" role="radiogroup">
<label class="radio-inline">
<input id="bopeOn/{{n.title}}" type="radio" ng-value="1" ng-model="n.data" role="radio" aria-labelledby="lbopeOn{{n.title}}"/>
<input id="bopeOn/{{n.title}}" type="radio" ng-value="1" ng-model="n.data" ng-checked="n.data==1||n.data=='1'" role="radio" aria-labelledby="lbopeOn{{n.title}}"/>
<span id="lbopeOn{{n.title}}" for="bopeOn/{{n.title}}" trspan="on"></span>
</label>
<label class="radio-inline">

Loading…
Cancel
Save