[Rt-commit] rt branch, history-filter, updated. rt-3.8.8-98-gf322df2

Shawn Moore sartak at bestpractical.com
Tue Jun 15 17:56:25 EDT 2010


The branch, history-filter has been updated
       via  f322df283a3fd63935054126f32d737e47c93409 (commit)
      from  07322266fa40a93cd7da077b832197a932d82c11 (commit)

Summary of changes:
 lib/RT/Transaction_Overlay.pm |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

- Log -----------------------------------------------------------------
commit f322df283a3fd63935054126f32d737e47c93409
Author: Shawn M Moore <sartak at bestpractical.com>
Date:   Tue Jun 15 17:57:20 2010 -0400

    Transaction->AllTypes

diff --git a/lib/RT/Transaction_Overlay.pm b/lib/RT/Transaction_Overlay.pm
index 346cc05..802657d 100755
--- a/lib/RT/Transaction_Overlay.pm
+++ b/lib/RT/Transaction_Overlay.pm
@@ -1367,4 +1367,16 @@ sub TypeMetadata {
     return $TypeMetadata{$type}{$field};
 }
 
+=head2 AllTypes
+
+Returns the names of all the known transaction types used in RT. This is
+probably not exhaustive since C<Type> is a string not an enumeration, but it's
+an acceptable first pass.
+
+=cut
+
+sub AllTypes {
+    return keys %TypeMetadata;
+}
+
 1;

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


More information about the Rt-commit mailing list