diff options
author | Brian Medley <bpm@snafu.org> | 2012-04-20 12:41:57 -0500 |
---|---|---|
committer | Brian Medley <bpm@snafu.org> | 2012-04-20 12:41:57 -0500 |
commit | 8abffa51cf2846154e9a893fc2af24db99f49c69 (patch) | |
tree | 38b590136d985af54eaec6a4b2f710f7b81178f5 | |
parent | 25f8c85c0723294a7fbf57df82ded48d9f07a074 (diff) | |
parent | 96cac28e01e2c57b2606efbed4932e2ed9328412 (diff) |
Merge branch 'master' of git.freeside.biz:/home/git/freeside
-rw-r--r-- | FS/FS/part_export/netsapiens.pm | 2 | ||||
-rwxr-xr-x | rt/share/html/Ticket/Create.html | 8 |
2 files changed, 6 insertions, 4 deletions
diff --git a/FS/FS/part_export/netsapiens.pm b/FS/FS/part_export/netsapiens.pm index adc19427b..867c19acc 100644 --- a/FS/FS/part_export/netsapiens.pm +++ b/FS/FS/part_export/netsapiens.pm @@ -245,7 +245,7 @@ sub ns_create_or_update { ### foreach $feature (split /\s+/, $self->option('features') ) { - my $nsf = $self->ns_command( 'PUT', $self->ns_feature($feature), + my $nsf = $self->ns_command( 'PUT', $self->ns_feature($svc_phone, $feature), 'control' => 'd', #User Control, disable 'expires' => 'never', #'ts' => '', #? diff --git a/rt/share/html/Ticket/Create.html b/rt/share/html/Ticket/Create.html index 6ea2c9f39..57e3bd476 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'}; } |