[freeside-commits] branch master updated. f27e48e51e2154468d960f1be656538373332ee5
Jonathan Prykop
jonathan at 420.am
Tue Oct 6 18:20:47 PDT 2015
The branch, master has been updated
via f27e48e51e2154468d960f1be656538373332ee5 (commit)
from 2b500be7e787a54eb005caa274406957728d8b1b (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 f27e48e51e2154468d960f1be656538373332ee5
Author: Jonathan Prykop <jonathan at freeside.biz>
Date: Tue Oct 6 20:17:42 2015 -0500
RT#38481: installer scheduling: redirect to basics (custom field edit) page instead of ticket view
diff --git a/httemplate/elements/schedule-appointment.html b/httemplate/elements/schedule-appointment.html
index 45a8a5b..69b9f42 100644
--- a/httemplate/elements/schedule-appointment.html
+++ b/httemplate/elements/schedule-appointment.html
@@ -12,7 +12,8 @@ my $custnum = encode_entities( $cgi->param('custnum') );
my $query = join('&', map "username=$_", @username).
"&LengthMin=$LengthMin".
- "&custnum=$custnum";
+ "&custnum=$custnum".
+ "&RedirectToBasics=1";
#XXX '&pkgnum=$pkgnum";need to be for specific package/location, not just for a customer... default to active(/ordered) package in a pkg_class w/ticketing_queueid, otherwise, a popup? we're getting complicated like form-creat_ticket.html
my $url = $p. 'rt/Search/Schedule.html?'. $query;
diff --git a/rt/share/html/Elements/CalendarSlotSchedule b/rt/share/html/Elements/CalendarSlotSchedule
index 632fabb..2513471 100644
--- a/rt/share/html/Elements/CalendarSlotSchedule
+++ b/rt/share/html/Elements/CalendarSlotSchedule
@@ -9,6 +9,7 @@
$LengthMin => $default_timestep
$custnum => undef
$pkgnum => undef
+ $RedirectToBasics => 0
</%ARGS>
% foreach my $username ( @username ) {
%
@@ -110,7 +111,8 @@
% '&Starts='. $Date->strftime('%F').'%20'. $Starts.
% '&Due='. $Date->strftime('%F').'%20'. $Due.
% '&new-MemberOf='. $member. #XXX uri_escape?
-% '&Status=new';
+% '&Status=new'.
+% '&RedirectToBasics='.$RedirectToBasics;
% #'&Requestors='. #XXX Freeside customer requestor(s) (package?
onmouseover = "boxon(this);"
diff --git a/rt/share/html/Search/Schedule.html b/rt/share/html/Search/Schedule.html
index 43680b4..ccd844b 100644
--- a/rt/share/html/Search/Schedule.html
+++ b/rt/share/html/Search/Schedule.html
@@ -212,6 +212,7 @@
#oops, more freeside abstraction-leaking
custnum => $ARGS{custnum},
pkgnum => $ARGS{pkgnum},
+ RedirectToBasics => $ARGS{RedirectToBasics},
],
&>
diff --git a/rt/share/html/Ticket/Display.html b/rt/share/html/Ticket/Display.html
index 41684c5..96a49d4 100755
--- a/rt/share/html/Ticket/Display.html
+++ b/rt/share/html/Ticket/Display.html
@@ -99,6 +99,7 @@ $id => undef
$TicketObj => undef
$ShowHeaders => 0
$ForceShowHistory => 0
+$RedirectToBasics => 0
</%ARGS>
<%INIT>
@@ -217,6 +218,7 @@ $m->callback(
);
# This code does automatic redirection if any updates happen.
+$m->notes('RedirectToBasics' => 1) if $RedirectToBasics;
my $path = '/Ticket/'. ( $m->notes('RedirectToBasics') ? 'Modify.html'
: 'Display.html' );
MaybeRedirectForResults(
-----------------------------------------------------------------------
Summary of changes:
httemplate/elements/schedule-appointment.html | 3 ++-
rt/share/html/Elements/CalendarSlotSchedule | 4 +++-
rt/share/html/Search/Schedule.html | 1 +
rt/share/html/Ticket/Display.html | 2 ++
4 files changed, 8 insertions(+), 2 deletions(-)
More information about the freeside-commits
mailing list