[freeside-commits] branch FREESIDE_2_3_BRANCH updated. c753aed492e71383fb56e99cf70cd5d51d159aaa

Mark Wells mark at 420.am
Thu Apr 19 11:36:38 PDT 2012


The branch, FREESIDE_2_3_BRANCH has been updated
       via  c753aed492e71383fb56e99cf70cd5d51d159aaa (commit)
      from  15a62244adb4e09e8f3d85998fb7bd35ce6ef148 (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 c753aed492e71383fb56e99cf70cd5d51d159aaa
Author: Mark Wells <mark at freeside.biz>
Date:   Thu Apr 19 11:36:07 2012 -0700

    keep form values when changing queue in ticket creation, #9853

diff --git a/rt/share/html/Ticket/Create.html b/rt/share/html/Ticket/Create.html
index 6ea2c9f..57e3bd4 100755
--- a/rt/share/html/Ticket/Create.html
+++ b/rt/share/html/Ticket/Create.html
@@ -45,6 +45,7 @@
 %# those contributions and any derivatives thereof.
 %#
 %# END BPS TAGGED BLOCK }}}
+%# use Data::Dumper; warn Dumper \%ARGS; #DEBUG
 <& /Elements/Header,
     Title => $title,
     onload => "function () { hide(document.getElementById('Ticket-Create-details')) }" &>
@@ -71,7 +72,7 @@
   Default => $QueueObj->Name,
   ShowNullOption => 0,
   ShowAllQueues => 0,
-  OnChange => "document.getElementsByName('id')[0].value = ''; form.submit()" &>
+  OnChange => "document.getElementsByName('id')[0].value = 'refresh'; form.submit()" &>
 </td>
 <td class="label"><&|/l&>Status</&>:
 </td>
@@ -91,7 +92,7 @@
 <&|/l&>Requestors</&>:
 </td>
 <td class="value" colspan="5">
-<& /Elements/EmailInput, Name => 'Requestors', Size => '40', Default => $ARGS{Requestors} || $session{CurrentUser}->EmailAddress &>
+<& /Elements/EmailInput, Name => 'Requestors', Size => '40', Default => exists($ARGS{Requestors}) ? $ARGS{Requestors} : $session{CurrentUser}->EmailAddress &>
 % $m->callback( CallbackName => 'AfterRequestors', QueueObj => $QueueObj, ARGSRef => \%ARGS );
 </td>
 </tr>
@@ -390,7 +391,8 @@ if ($ARGS{'Attach'}) {			# attachment?
 # }}}
 
 # delete temporary storage entry to make WebUI clean
-unless (keys %{$session{'Attachments'}} and $ARGS{'id'} eq 'new') {
+unless (keys %{$session{'Attachments'}} and 
+        ($ARGS{'id'} eq 'new' or $ARGS{'id'} eq 'refresh')) {
     delete $session{'Attachments'};
 }
 

-----------------------------------------------------------------------

Summary of changes:
 rt/share/html/Ticket/Create.html |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)




More information about the freeside-commits mailing list