[Rt-commit] [rtir] 04/10: Show Basics CFs when displaying RTIR's CF List
Kevin Falcone
falcone at bestpractical.com
Mon Aug 18 16:39:17 EDT 2014
This is an automated email from the git hooks/post-receive script.
falcone pushed a commit to branch master
in repository rtir.
commit ed779d925c342440cb7c50fe9be7226a2f50c54b
Author: Kevin Falcone <falcone at bestpractical.com>
Date: Fri Jul 25 14:58:55 2014 -0400
Show Basics CFs when displaying RTIR's CF List
We'll call EditCustomFieldCustomGroupings after EditCustomFields on all
the other pages. There's one page (Scripted Actions) which wants to use
AllGroupings, similar to what core's SelfService Grouping has to do
because we don't show all boxes in SelfService.
---
html/RTIR/Elements/EditCustomFields | 2 ++
html/RTIR/Incident/Elements/Create | 1 +
2 files changed, 3 insertions(+)
diff --git a/html/RTIR/Elements/EditCustomFields b/html/RTIR/Elements/EditCustomFields
index 7362565..e7e16e1 100644
--- a/html/RTIR/Elements/EditCustomFields
+++ b/html/RTIR/Elements/EditCustomFields
@@ -51,6 +51,7 @@
($TicketObj->Id ? () : (CustomFields => $QueueObj->TicketCustomFields)), # on ticket creation, use Queue CFs
%ARGS,
%$CFDefaults,
+ ($AllGroupings ? () : (Grouping => 'Basics')), # Groupings comes in as an ARGS on Edit.html
InTable => 1,
&>
@@ -93,5 +94,6 @@ unless ( $TicketObj && $TicketObj->Id ) {
$TicketObj => undef
$QueueObj => undef
$DefaultsFrom => undef
+$AllGroupings => 0
$CFDefaults => {}
</%ARGS>
diff --git a/html/RTIR/Incident/Elements/Create b/html/RTIR/Incident/Elements/Create
index 912907b..76191ef 100644
--- a/html/RTIR/Incident/Elements/Create
+++ b/html/RTIR/Incident/Elements/Create
@@ -74,6 +74,7 @@
TicketObj => $ticket,
QueueObj => $QueueObj,
DefaultsFrom => $ChildObj,
+ AllGroupings => 1,
&>
<%INIT>
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the rt-commit
mailing list