Bugzilla – Attachment 181456 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-04-24 14:41:03 UTC
(
hide
)
Description:
Bug 39711: Update call to AddContract
Filename:
MIME Type:
Creator:
Matt Blenkinsop
Created:
2025-04-24 14:41:03 UTC
Size:
1.54 KB
patch
obsolete
>From b7eec01cfc73eaa49d822a0ed0396bcbc118a78e 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 228c532a21e..c2d830a7c05 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.48.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