Bugzilla – Attachment 155903 Details for
Bug 32942
Suggestion API doesn't support custom statuses
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 32942: (follow-up) Fix test
Bug-32942-follow-up-Fix-test.patch (text/plain), 1.04 KB, created by
Martin Renvoize (ashimema)
on 2023-09-19 15:40:55 UTC
(
hide
)
Description:
Bug 32942: (follow-up) Fix test
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2023-09-19 15:40:55 UTC
Size:
1.04 KB
patch
obsolete
>From a2278eef49d192a5caa54b8753772a694b024467 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Tue, 19 Sep 2023 16:19:53 +0100 >Subject: [PATCH] Bug 32942: (follow-up) Fix test > >I missed a test case when doing follow-ups before.. this patch catches >that case and create the required authorized value to allow >ModSuggestion to succeed. >--- > t/db_dependent/Suggestions.t | 6 ++++++ > 1 file changed, 6 insertions(+) > >diff --git a/t/db_dependent/Suggestions.t b/t/db_dependent/Suggestions.t >index b5d4b5390f5..5a6f7a2bbeb 100755 >--- a/t/db_dependent/Suggestions.t >+++ b/t/db_dependent/Suggestions.t >@@ -205,6 +205,12 @@ my $messages = C4::Letters::GetQueuedMessages({ > }); > is( @$messages, 0, 'ModSuggestions does not send an email if the status is not updated' ); > >+my $authorised_value = Koha::AuthorisedValue->new( >+ { >+ category => 'SUGGEST_STATUS', >+ authorised_value => 'STALLED' >+ } >+)->store; > my $mod_suggestion2 = { > STATUS => 'STALLED', > suggestionid => $my_suggestionid, >-- >2.41.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 32942
:
146508
|
146592
|
146593
|
146594
|
154642
|
154643
|
155801
|
155802
|
155803
|
155804
|
155805
|
155806
|
155900
|
155901
|
155902
|
155903
|
155904
|
155905
|
155906