Lines 338-345
if ($op eq 'save' || $op eq 'insert'){
Link Here
|
338 |
$extended_patron_attributes = parse_extended_patron_attributes($input); |
338 |
$extended_patron_attributes = parse_extended_patron_attributes($input); |
339 |
foreach my $attr (@$extended_patron_attributes) { |
339 |
foreach my $attr (@$extended_patron_attributes) { |
340 |
unless (C4::Members::Attributes::CheckUniqueness($attr->{code}, $attr->{value}, $borrowernumber)) { |
340 |
unless (C4::Members::Attributes::CheckUniqueness($attr->{code}, $attr->{value}, $borrowernumber)) { |
|
|
341 |
my $attr_info = C4::Members::AttributeTypes->fetch($attr->{code}); |
341 |
push @errors, "ERROR_extended_unique_id_failed"; |
342 |
push @errors, "ERROR_extended_unique_id_failed"; |
342 |
$template->param(ERROR_extended_unique_id_failed_value => "$attr->{code}/$attr->{value}"); |
343 |
$template->param( |
|
|
344 |
ERROR_extended_unique_id_failed_code => $attr->{code}, |
345 |
ERROR_extended_unique_id_failed_value => $attr->{value}, |
346 |
ERROR_extended_unique_id_failed_description => $attr_info->description() |
347 |
); |
343 |
} |
348 |
} |
344 |
} |
349 |
} |
345 |
} |
350 |
} |
346 |
- |
|
|