[freeside-commits] branch master updated. 2a49a712c97e5b5a012a91ff4bc2c0518c2af6d6
Mark Wells
mark at 420.am
Fri Aug 9 12:35:54 PDT 2013
The branch, master has been updated
via 2a49a712c97e5b5a012a91ff4bc2c0518c2af6d6 (commit)
from 4109791a9b80df968edaf2e71da8ebcfb8882be3 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 2a49a712c97e5b5a012a91ff4bc2c0518c2af6d6
Author: Mark Wells <mark at freeside.biz>
Date: Fri Aug 9 12:35:04 2013 -0700
fix ticket creation, from #23309
diff --git a/rt/share/html/Ticket/Elements/EditBasics b/rt/share/html/Ticket/Elements/EditBasics
index a86bb6c..e7a1662 100755
--- a/rt/share/html/Ticket/Elements/EditBasics
+++ b/rt/share/html/Ticket/Elements/EditBasics
@@ -52,7 +52,7 @@ $InTable => 0
%defaults => ()
</%ARGS>
<%INIT>
-my $WillResolveObj = $TicketObj->WillResolveObj;
+my $WillResolveObj = $TicketObj->WillResolveObj if defined $TicketObj;
unless ( @fields ) {
@fields = (
{ name => 'Subject',
@@ -74,7 +74,8 @@ unless ( @fields ) {
args => {
menu_prefix => 'WillResolve',
Default => $ARGS{'WillResolve'} ||
- ($WillResolveObj->Unix > 0 ?
+ (defined($WillResolveObj)
+ and $WillResolveObj->Unix > 0 ?
$WillResolveObj->Date : ''),
current => 0,
ShowTime => 0,
-----------------------------------------------------------------------
Summary of changes:
rt/share/html/Ticket/Elements/EditBasics | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
More information about the freeside-commits
mailing list