[Bps-public-commit] RT-BugTracker branch, master, updated. 4cbcc15e718753e6f42826914ba86f8b10818433

Thomas Sibley trs at bestpractical.com
Tue May 14 03:27:06 EDT 2013


The branch, master has been updated
       via  4cbcc15e718753e6f42826914ba86f8b10818433 (commit)
      from  f5dc373a5f1bd38ce8041a2f69ae2770d76bae85 (commit)

Summary of changes:
 .../Ticket/Elements/EditCustomFields/MassageCustomFields       | 10 ++++++++++
 html/Callbacks/BugTracker/Ticket/Update.html/AfterWorked       | 10 ++++++++++
 2 files changed, 20 insertions(+)
 create mode 100644 html/Callbacks/BugTracker/Ticket/Elements/EditCustomFields/MassageCustomFields
 create mode 100644 html/Callbacks/BugTracker/Ticket/Update.html/AfterWorked

- Log -----------------------------------------------------------------
commit 4cbcc15e718753e6f42826914ba86f8b10818433
Author: Thomas Sibley <trs at bestpractical.com>
Date:   Tue May 14 00:26:41 2013 -0700

    Show the "Fixed in" CF on the ticket update page
    
    More likely to get filled in when resolving.

diff --git a/html/Callbacks/BugTracker/Ticket/Elements/EditCustomFields/MassageCustomFields b/html/Callbacks/BugTracker/Ticket/Elements/EditCustomFields/MassageCustomFields
new file mode 100644
index 0000000..1075e8b
--- /dev/null
+++ b/html/Callbacks/BugTracker/Ticket/Elements/EditCustomFields/MassageCustomFields
@@ -0,0 +1,10 @@
+<%args>
+$CustomFields
+$Named => []
+</%args>
+<%init>
+return unless @$Named;
+
+$CustomFields->Limit( FIELD => 'Name', VALUE => $_, SUBCLAUSE => 'names', ENTRYAGGREGRATOR => 'OR' )
+    for @$Named;
+</%init>
diff --git a/html/Callbacks/BugTracker/Ticket/Update.html/AfterWorked b/html/Callbacks/BugTracker/Ticket/Update.html/AfterWorked
new file mode 100644
index 0000000..8932694
--- /dev/null
+++ b/html/Callbacks/BugTracker/Ticket/Update.html/AfterWorked
@@ -0,0 +1,10 @@
+<%args>
+$Ticket
+</%args>
+<& /Ticket/Elements/EditCustomFields,
+    %ARGS,
+    TicketObj   => $Ticket,
+    InTable     => 1,
+    # Handled by our MassageCustomFields callback in the called component
+    Named       => ["Fixed in"],
+    &>

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



More information about the Bps-public-commit mailing list