Using "boolean_preference()" call to get current status of YesNo type system
preferences.
This commit is contained in:
parent
66bf985d0a
commit
6c203041b1
1 changed files with 2 additions and 1 deletions
|
@ -174,7 +174,8 @@ if ($op eq 'add_form') {
|
|||
$template->param('type-choice' => 1);
|
||||
} elsif ($data->{'type'} eq 'YesNo') {
|
||||
$template->param('type-yesno' => 1);
|
||||
($data->{'value'} eq 'yes') ? ($template->param('value-yes'=>1)) : ($template->param('value-no'=>1));
|
||||
$data->{'value'}=C4::Context->boolean_preference($data->{'variable'});
|
||||
($data->{'value'} eq '1') ? ($template->param('value-yes'=>1)) : ($template->param('value-no'=>1));
|
||||
} elsif ($data->{'type'} eq 'free') {
|
||||
$template->param('type-free' => 1);
|
||||
$template->param('fieldlength' => $data->{'options'});
|
||||
|
|
Loading…
Reference in a new issue