diff options
| author | mark <mark> | 2011-06-02 19:24:46 +0000 | 
|---|---|---|
| committer | mark <mark> | 2011-06-02 19:24:46 +0000 | 
| commit | 403d2848c14d67f21d30b15d0a7a7b6bc20a0b23 (patch) | |
| tree | 212eba1577cab40947109ec36559888934570f3b | |
| parent | 752db0e2e6f3eece3237c69b372084257a684f0b (diff) | |
fix ticket creation, from #9260
| -rwxr-xr-x | rt/share/html/Ticket/Elements/EditCustomFields | 6 | 
1 files changed, 4 insertions, 2 deletions
diff --git a/rt/share/html/Ticket/Elements/EditCustomFields b/rt/share/html/Ticket/Elements/EditCustomFields index 943170677..ee55e996f 100755 --- a/rt/share/html/Ticket/Elements/EditCustomFields +++ b/rt/share/html/Ticket/Elements/EditCustomFields @@ -106,8 +106,10 @@ $m->callback( %ARGS, CallbackName => 'MassageCustomFields', CustomFields => $Cus  my $single_column = RT->Config->Get('EditCustomFieldsSingleColumn');  # show hints for missing required fields -foreach my $field ( $TicketObj->MissingRequiredFields ) { -    $m->notes('InvalidField-' . $field->Id => 'Required to resolve'); +if ( $TicketObj ) { +    foreach my $field ( $TicketObj->MissingRequiredFields ) { +        $m->notes('InvalidField-' . $field->Id => 'Required to resolve'); +    }  }  </%INIT>  | 
