Bugzilla – Attachment 33538 Details for
Bug 13222
Accessors for import_record.status have variable names suggesting overlay_status
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[PASSED QA] Bug 13222 - Accessors for import_record.status have variable names suggesting overlay_status
PASSED-QA-Bug-13222---Accessors-for-importrecordst.patch (text/plain), 1.87 KB, created by
Katrin Fischer
on 2014-11-13 21:10:46 UTC
(
hide
)
Description:
[PASSED QA] Bug 13222 - Accessors for import_record.status have variable names suggesting overlay_status
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2014-11-13 21:10:46 UTC
Size:
1.87 KB
patch
obsolete
>From 6c3480107d718e80f56788749b0b1fa958b11c15 Mon Sep 17 00:00:00 2001 >From: Olli-Antti Kivilahti <olli-antti.kivilahti@jns.fi> >Date: Fri, 7 Nov 2014 17:07:46 +0200 >Subject: [PATCH] [PASSED QA] Bug 13222 - Accessors for import_record.status > have variable names suggesting overlay_status > >TODO:: Somebody who knows what these are about could write some documentation about it. > >Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com> >Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de> >--- > C4/ImportBatch.pm | 12 ++++++------ > 1 file changed, 6 insertions(+), 6 deletions(-) > >diff --git a/C4/ImportBatch.pm b/C4/ImportBatch.pm >index b8d2560..08304d7 100644 >--- a/C4/ImportBatch.pm >+++ b/C4/ImportBatch.pm >@@ -1328,7 +1328,7 @@ sub SetImportRecordOverlayStatus { > > =head2 GetImportRecordStatus > >- my $overlay_status = GetImportRecordStatus($import_record_id); >+ my $status = GetImportRecordStatus($import_record_id); > > =cut > >@@ -1338,25 +1338,25 @@ sub GetImportRecordStatus { > my $dbh = C4::Context->dbh; > my $sth = $dbh->prepare("SELECT status FROM import_records WHERE import_record_id = ?"); > $sth->execute($import_record_id); >- my ($overlay_status) = $sth->fetchrow_array(); >+ my ($status) = $sth->fetchrow_array(); > $sth->finish(); >- return $overlay_status; >+ return $status; > > } > > > =head2 SetImportRecordStatus > >- SetImportRecordStatus($import_record_id, $new_overlay_status); >+ SetImportRecordStatus($import_record_id, $new_status); > > =cut > > sub SetImportRecordStatus { >- my ($import_record_id, $new_overlay_status) = @_; >+ my ($import_record_id, $new_status) = @_; > > my $dbh = C4::Context->dbh; > my $sth = $dbh->prepare("UPDATE import_records SET status = ? WHERE import_record_id = ?"); >- $sth->execute($new_overlay_status, $import_record_id); >+ $sth->execute($new_status, $import_record_id); > $sth->finish(); > > } >-- >1.9.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 13222
:
33380
|
33486
| 33538