Bugzilla – Attachment 169831 Details for
Bug 36372
Allow privileged users to set the 'record source' on cataloguing
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 36372: (QA followup) pass current record-source to template while editing
Bug-36372-QA-followup-pass-current-record-source-t.patch (text/plain), 1.41 KB, created by
Janusz Kaczmarek
on 2024-07-29 12:32:12 UTC
(
hide
)
Description:
Bug 36372: (QA followup) pass current record-source to template while editing
Filename:
MIME Type:
Creator:
Janusz Kaczmarek
Created:
2024-07-29 12:32:12 UTC
Size:
1.41 KB
patch
obsolete
>From c90e829809c8a20b88d72c6bfdc68ae16b723b8f Mon Sep 17 00:00:00 2001 >From: Arthur Suzuki <arthur.suzuki@biblibre.com> >Date: Thu, 25 Jul 2024 09:37:44 +0200 >Subject: [PATCH] Bug 36372: (QA followup) pass current record-source to > template while editing > >Signed-off-by: Janusz Kaczmarek <januszop@gmail.com> >--- > cataloguing/record_source.pl | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > >diff --git a/cataloguing/record_source.pl b/cataloguing/record_source.pl >index 1005e1aa1f..d9fbd87242 100755 >--- a/cataloguing/record_source.pl >+++ b/cataloguing/record_source.pl >@@ -39,7 +39,7 @@ my $input = CGI->new; > my $biblionumber = $input->param('biblionumber'); > my $record_source_id = $input->param('record_source_id') // ''; > my $save = $input->param('save') // ''; >-my $biblio = Koha::Biblios->find($biblionumber); >+my $biblio = Koha::Biblios->find($biblionumber); > > if ($save) { > $biblio->metadata->set( { record_source_id => $record_source_id } )->store; >@@ -60,8 +60,9 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user( > my $record_sources = Koha::RecordSources->search(); > > $template->param( >- biblio => $biblio, >+ biblio => $biblio, > record_sources => $record_sources, >+ current_source => { record_source_id => $biblio->metadata->record_source_id }, > ); > > output_html_with_http_headers $input, $cookie, $template->output; >-- >2.39.2
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 36372
:
166161
|
168054
|
168195
|
168338
|
168339
|
168340
|
168430
|
168510
|
168511
|
168512
|
168897
|
168898
|
168899
|
168900
|
168902
|
169268
|
169269
|
169270
|
169271
|
169542
|
169831
|
172369
|
172370
|
172371