Bugzilla – Attachment 89874 Details for
Bug 22907
Cannot add new suggestion with strict SQL modes turned on
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 22907: Remove previous code handling the same thing
Bug-22907-Remove-previous-code-handling-the-same-t.patch (text/plain), 1.93 KB, created by
Liz Rea
on 2019-05-16 18:50:27 UTC
(
hide
)
Description:
Bug 22907: Remove previous code handling the same thing
Filename:
MIME Type:
Creator:
Liz Rea
Created:
2019-05-16 18:50:27 UTC
Size:
1.93 KB
patch
obsolete
>From 420cca07de5b0cbf651a3bd517ab32ab041ba5ab Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Tue, 14 May 2019 12:27:25 -0500 >Subject: [PATCH] Bug 22907: Remove previous code handling the same thing > >See: > commit a71b96295fb07084e4f87ac1a471e89355f3c5a4 > Bug 12627: Fix default values > >Signed-off-by: Liz Rea <wizzyrea@gmail.com> >--- > C4/Suggestions.pm | 31 ------------------------------- > 1 file changed, 31 deletions(-) > >diff --git a/C4/Suggestions.pm b/C4/Suggestions.pm >index 495d380e87..3367df5848 100644 >--- a/C4/Suggestions.pm >+++ b/C4/Suggestions.pm >@@ -437,20 +437,6 @@ Insert a new suggestion on database with value given on input arg. > sub NewSuggestion { > my ($suggestion) = @_; > >- for my $field ( qw( >- suggestedby >- managedby >- manageddate >- acceptedby >- accepteddate >- rejectedby >- rejecteddate >- budgetid >- ) ) { >- # Set the fields to NULL if not given. >- $suggestion->{$field} ||= undef; >- } >- > $suggestion->{STATUS} = "ASKED" unless $suggestion->{STATUS}; > > $suggestion->{suggesteddate} = dt_from_string unless $suggestion->{suggesteddate}; >@@ -526,23 +512,6 @@ sub ModSuggestion { > my ($suggestion) = @_; > return unless( $suggestion and defined($suggestion->{suggestionid}) ); > >- for my $field ( qw( >- suggestedby >- managedby >- manageddate >- acceptedby >- accepteddate >- rejectedby >- rejecteddate >- budgetid >- ) ) { >- # Set the fields to NULL if not given. >- $suggestion->{$field} = undef >- if exists $suggestion->{$field} >- and ($suggestion->{$field} eq '0' >- or $suggestion->{$field} eq '' ); >- } >- > my $suggestion_object = Koha::Suggestions->find( $suggestion->{suggestionid} ); > eval { # FIXME Must raise an exception instead > $suggestion_object->set($suggestion)->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 22907
:
89763
|
89764
|
89767
|
89768
|
89865
|
89872
|
89873
|
89874
|
89875
|
90168
|
90169
|
90170
|
90177
|
90178
|
90179
|
90180