Lines 154-159
if ( $op eq 'add_form' ) {
Link Here
|
154 |
$data->{'BlockExpiredPatronOpacActions'}, |
154 |
$data->{'BlockExpiredPatronOpacActions'}, |
155 |
TalkingTechItivaPhone => |
155 |
TalkingTechItivaPhone => |
156 |
C4::Context->preference("TalkingTechItivaPhoneNotification"), |
156 |
C4::Context->preference("TalkingTechItivaPhoneNotification"), |
|
|
157 |
canbeguarantee => $data->{'canbeguarantee'}, |
157 |
); |
158 |
); |
158 |
|
159 |
|
159 |
if ( C4::Context->preference('EnhancedMessagingPreferences') ) { |
160 |
if ( C4::Context->preference('EnhancedMessagingPreferences') ) { |
Lines 178-184
elsif ( $op eq 'add_validate' ) {
Link Here
|
178 |
) |
179 |
) |
179 |
); |
180 |
); |
180 |
} |
181 |
} |
181 |
|
|
|
182 |
if ($is_a_modif) { |
182 |
if ($is_a_modif) { |
183 |
my $sth = $dbh->prepare( " |
183 |
my $sth = $dbh->prepare( " |
184 |
UPDATE categories |
184 |
UPDATE categories |
Lines 193-199
elsif ( $op eq 'add_validate' ) {
Link Here
|
193 |
overduenoticerequired=?, |
193 |
overduenoticerequired=?, |
194 |
category_type=?, |
194 |
category_type=?, |
195 |
BlockExpiredPatronOpacActions=?, |
195 |
BlockExpiredPatronOpacActions=?, |
196 |
default_privacy=? |
196 |
default_privacy=?, |
|
|
197 |
canbeguarantee=? |
197 |
WHERE categorycode=?" |
198 |
WHERE categorycode=?" |
198 |
); |
199 |
); |
199 |
$sth->execute( |
200 |
$sth->execute( |
Lines 204-210
elsif ( $op eq 'add_validate' ) {
Link Here
|
204 |
'reservefee', 'hidelostitems', |
205 |
'reservefee', 'hidelostitems', |
205 |
'overduenoticerequired', 'category_type', |
206 |
'overduenoticerequired', 'category_type', |
206 |
'block_expired', 'default_privacy', |
207 |
'block_expired', 'default_privacy', |
207 |
'categorycode' |
208 |
'canbeguarantee', 'categorycode' |
208 |
) |
209 |
) |
209 |
); |
210 |
); |
210 |
$sth->finish; |
211 |
$sth->finish; |
Lines 224-230
elsif ( $op eq 'add_validate' ) {
Link Here
|
224 |
overduenoticerequired, |
225 |
overduenoticerequired, |
225 |
category_type, |
226 |
category_type, |
226 |
BlockExpiredPatronOpacActions, |
227 |
BlockExpiredPatronOpacActions, |
227 |
default_privacy |
228 |
default_privacy, |
|
|
229 |
canbeguarantee |
228 |
) |
230 |
) |
229 |
VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?)" ); |
231 |
VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?)" ); |
230 |
my $inserted = $sth->execute( |
232 |
my $inserted = $sth->execute( |
Lines 235-241
elsif ( $op eq 'add_validate' ) {
Link Here
|
235 |
'enrolmentfee', 'reservefee', |
237 |
'enrolmentfee', 'reservefee', |
236 |
'hidelostitems', 'overduenoticerequired', |
238 |
'hidelostitems', 'overduenoticerequired', |
237 |
'category_type', 'block_expired', |
239 |
'category_type', 'block_expired', |
238 |
'default_privacy', |
240 |
'default_privacy', 'canbeguarantee' |
239 |
) |
241 |
) |
240 |
); |
242 |
); |
241 |
if ( $inserted ) { |
243 |
if ( $inserted ) { |
Lines 340-346
if ( $op eq 'list' ) {
Link Here
|
340 |
} |
342 |
} |
341 |
|
343 |
|
342 |
$results->[$i]{'category_type'} //= ''; |
344 |
$results->[$i]{'category_type'} //= ''; |
343 |
|
|
|
344 |
my %row = ( |
345 |
my %row = ( |
345 |
branches => \@selected_branches, |
346 |
branches => \@selected_branches, |
346 |
categorycode => $results->[$i]{'categorycode'}, |
347 |
categorycode => $results->[$i]{'categorycode'}, |
Lines 354-359
if ( $op eq 'list' ) {
Link Here
|
354 |
hidelostitems => $results->[$i]{'hidelostitems'}, |
355 |
hidelostitems => $results->[$i]{'hidelostitems'}, |
355 |
category_type => $results->[$i]{'category_type'}, |
356 |
category_type => $results->[$i]{'category_type'}, |
356 |
default_privacy => $results->[$i]{'default_privacy'}, |
357 |
default_privacy => $results->[$i]{'default_privacy'}, |
|
|
358 |
canbeguarantee => $results->[$i]{'canbeguarantee'}, |
357 |
reservefee => sprintf( "%.2f", $results->[$i]{'reservefee'} || 0 ), |
359 |
reservefee => sprintf( "%.2f", $results->[$i]{'reservefee'} || 0 ), |
358 |
enrolmentfee => |
360 |
enrolmentfee => |
359 |
sprintf( "%.2f", $results->[$i]{'enrolmentfee'} || 0 ), |
361 |
sprintf( "%.2f", $results->[$i]{'enrolmentfee'} || 0 ), |