use C4::Form::MessagingPreferences;
use Koha::Patrons;
use Koha::Database;
-use Koha::DateUtils qw( dt_from_string output_pref );
use Koha::Patron::Categories;
use Koha::Libraries;
my $min_password_length = $input->param('min_password_length');
my $require_strong_password = $input->param('require_strong_password');
my @branches = grep { $_ ne q{} } $input->multi_param('branches');
- my $canbeguarantee = $input->param('canbeguarantee');
+ my $can_be_guarantee = $input->param('can_be_guarantee');
$reset_password = undef if $reset_password eq -1;
$change_password = undef if $change_password eq -1;
my $is_a_modif = $input->param("is_a_modif");
- if ($enrolmentperioddate) {
- $enrolmentperioddate = output_pref(
- {
- dt => dt_from_string($enrolmentperioddate),
- dateformat => 'iso',
- dateonly => 1,
- }
- );
- }
-
if ($is_a_modif) {
my $category = Koha::Patron::Categories->find( $categorycode );
$category->categorycode($categorycode);
$category->hidelostitems($hidelostitems);
$category->overduenoticerequired($overduenoticerequired);
$category->category_type($category_type);
- $category->canbeguarantee($canbeguarantee);
+ $category->can_be_guarantee($can_be_guarantee);
$category->BlockExpiredPatronOpacActions($BlockExpiredPatronOpacActions);
$category->checkprevcheckout($checkPrevCheckout);
$category->default_privacy($default_privacy);
hidelostitems => $hidelostitems,
overduenoticerequired => $overduenoticerequired,
category_type => $category_type,
- canbeguarantee => $canbeguarantee,
+ can_be_guarantee => $can_be_guarantee,
BlockExpiredPatronOpacActions => $BlockExpiredPatronOpacActions,
checkprevcheckout => $checkPrevCheckout,
default_privacy => $default_privacy,