[Rt-commit] [rtir] 04/09: Show Basics CFs when displaying RTIR's CF List

Kevin Falcone falcone at bestpractical.com
Fri Jul 25 15:16:02 EDT 2014


This is an automated email from the git hooks/post-receive script.

falcone pushed a commit to branch 3.2/customfieldgroupings
in repository rtir.

commit 9c3ea3000d72f317de2e1e0a064b47a2a1e03dd9
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