Bugzilla – Attachment 9033 Details for
Bug 7871
Crash on suggestion pages when a budget in use has been deleted
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 7871: prevents crash when suggestion linked to erased budget
Bug-7871-prevents-crash-when-suggestion-linked-to-.patch (text/plain), 1.27 KB, created by
Chris Cormack
on 2012-04-09 03:13:09 UTC
(
hide
)
Description:
Bug 7871: prevents crash when suggestion linked to erased budget
Filename:
MIME Type:
Creator:
Chris Cormack
Created:
2012-04-09 03:13:09 UTC
Size:
1.27 KB
patch
obsolete
>From 582ebbb6b9324de28c7bbda824474d88d4b9889e Mon Sep 17 00:00:00 2001 >From: Adrien Saurat <adrien.saurat@biblibre.com> >Date: Tue, 3 Apr 2012 09:56:46 +0200 >Subject: [PATCH] Bug 7871: prevents crash when suggestion linked to erased > budget > >Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz> >--- > suggestion/suggestion.pl | 5 ++++- > 1 files changed, 4 insertions(+), 1 deletions(-) > >diff --git a/suggestion/suggestion.pl b/suggestion/suggestion.pl >index 7f197d8..f7c50b5 100755 >--- a/suggestion/suggestion.pl >+++ b/suggestion/suggestion.pl >@@ -205,7 +205,10 @@ if ($op=~/else/) { > > my $suggestions = &SearchSuggestion($suggestion_ref); > foreach my $suggestion (@$suggestions) { >- $suggestion->{budget_name} = GetBudget( $suggestion->{budgetid} )->{budget_name} if $suggestion->{budgetid}; >+ if ($suggestion->{budgetid}){ >+ my $bud = GetBudget( $suggestion->{budgetid} ); >+ $suggestion->{budget_name} = $bud->{budget_name} if $bud; >+ } > foreach my $date qw(suggesteddate manageddate accepteddate) { > if ($suggestion->{$date} and $suggestion->{$date} ne "0000-00-00" && $suggestion->{$date} ne "" ) { > $suggestion->{$date} = format_date( $suggestion->{$date} ); >-- >1.7.5.4
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 7871
:
8797
| 9033