Bugzilla – Attachment 81444 Details for
Bug 15184
Ability to duplicate existing order lines to a given basket
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 15184: Set created_by to the logged in user
Bug-15184-Set-createdby-to-the-logged-in-user.patch (text/plain), 1.10 KB, created by
Katrin Fischer
on 2018-10-28 22:38:33 UTC
(
hide
)
Description:
Bug 15184: Set created_by to the logged in user
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2018-10-28 22:38:33 UTC
Size:
1.10 KB
patch
obsolete
>From 17815fbfdb4c120588e9f5390d6c815d4dd1612a Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Fri, 7 Sep 2018 13:46:12 -0300 >Subject: [PATCH] Bug 15184: Set created_by to the logged in user >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >Signed-off-by: Séverine QUEUNE <severine.queune@bulac.fr> > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > Koha/Acquisition/Order.pm | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > >diff --git a/Koha/Acquisition/Order.pm b/Koha/Acquisition/Order.pm >index 8abfbdd197..da1e5ac7bd 100644 >--- a/Koha/Acquisition/Order.pm >+++ b/Koha/Acquisition/Order.pm >@@ -242,7 +242,8 @@ sub duplicate_to { > $order_info->{$field} = $value; > } > >- # FIXME $order_info->{created_by} = logged_in_user? >+ my $userenv = C4::Context->userenv; >+ $order_info->{created_by} = $userenv->{number}; > $order_info->{basketno} = $basket->basketno; > > $new_order = Koha::Acquisition::Order->new($order_info)->store; >-- >2.11.0
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 15184
:
77314
|
77315
|
77316
|
77317
|
77318
|
77513
|
77514
|
77515
|
77516
|
77517
|
77966
|
77967
|
77968
|
77969
|
77970
|
78074
|
78075
|
78076
|
78077
|
78078
|
78277
|
78278
|
78279
|
78280
|
78281
|
78282
|
78283
|
78284
|
78285
|
78340
|
78535
|
78536
|
78537
|
78538
|
78539
|
78697
|
78698
|
78699
|
78700
|
78701
|
78702
|
78703
|
78704
|
78705
|
78706
|
78898
|
78911
|
78927
|
78958
|
78959
|
78960
|
78961
|
78962
|
78963
|
78964
|
78965
|
78966
|
78967
|
78968
|
78969
|
78970
|
80485
|
80486
|
80487
|
80488
|
80489
|
80490
|
80491
|
80492
|
80493
|
80494
|
80495
|
80638
|
81435
|
81436
|
81437
|
81438
|
81439
|
81440
|
81441
|
81442
|
81443
| 81444 |
81445
|
81446
|
81447
|
81448
|
82079