Bugzilla – Attachment 189396 Details for
Bug 39711
Migrate C4::Contract to object classes
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 39711: Update call to AddContract
Bug-39711-Update-call-to-AddContract.patch (text/plain), 1.54 KB, created by
Matt Blenkinsop
on 2025-11-10 13:21:42 UTC
(
hide
)
Description:
Bug 39711: Update call to AddContract
Filename:
MIME Type:
Creator:
Matt Blenkinsop
Created:
2025-11-10 13:21:42 UTC
Size:
1.54 KB
patch
obsolete
>From 7b8a091c4b7c6e2f2b69de854e27e95941a8d8bb Mon Sep 17 00:00:00 2001 >From: Matt Blenkinsop <matt.blenkinsop@openfifth.co.uk> >Date: Thu, 24 Apr 2025 14:52:55 +0100 >Subject: [PATCH] Bug 39711: Update call to AddContract > >--- > admin/aqcontract.pl | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > >diff --git a/admin/aqcontract.pl b/admin/aqcontract.pl >index a5dd8c282e5..9c099963927 100755 >--- a/admin/aqcontract.pl >+++ b/admin/aqcontract.pl >@@ -26,13 +26,13 @@ use C4::Context; > use C4::Auth qw( get_template_and_user ); > use C4::Output qw( output_html_with_http_headers ); > use C4::Contract qw( >- AddContract > DelContract > ModContract > ); > use Koha::DateUtils qw( dt_from_string ); > > use Koha::Acquisition::Booksellers; >+use Koha::Acquisition::Contract; > use Koha::Acquisition::Contracts; > > my $input = CGI->new; >@@ -114,7 +114,7 @@ elsif ( $op eq 'cud-add_validate' ) { > } > ); > } else { >- AddContract( >+ my $contract = Koha::Acquisition::Contract->new( > { > contractname => scalar $input->param('contractname'), > contractdescription => scalar $input->param('contractdescription'), >@@ -122,7 +122,7 @@ elsif ( $op eq 'cud-add_validate' ) { > contractstartdate => scalar $input->param('contractstartdate'), > contractenddate => scalar $input->param('contractenddate'), > } >- ); >+ )->store; > } > > print $input->redirect("/cgi-bin/koha/acquisition/vendors/$booksellerid"); >-- >2.50.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 39711
:
181453
|
181454
|
181455
|
181456
|
181457
|
181458
|
181459
|
181460
|
181461
|
181580
|
181581
|
181582
|
181583
|
181584
|
181586
|
181587
|
181588
|
189393
|
189394
|
189395
| 189396 |
189397
|
189398
|
189399
|
189400
|
189401
|
189402
|
189403
|
189404
|
189405
|
189406
|
189407