[Rt-commit] rt branch, 4.0/show-custom-fields-callbacks, created. rt-4.0.10-62-gecf33f4

? sunnavy sunnavy at bestpractical.com
Fri Mar 1 08:57:10 EST 2013


The branch, 4.0/show-custom-fields-callbacks has been created
        at  ecf33f4bd0f41748b23060ee74c857ec9f279a6a (commit)

- Log -----------------------------------------------------------------
commit ecf33f4bd0f41748b23060ee74c857ec9f279a6a
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Fri Mar 1 21:54:07 2013 +0800

    more callbacks and callback args for ShowCustomFields
    
    * add AfterCustomFieldValue callback
    * add "Grouping" arg to AfterCustomfields
    * add both "Grouping" and "Object" args to BeforeCustomFields

diff --git a/share/html/Elements/ShowCustomFields b/share/html/Elements/ShowCustomFields
index 6a6fb9c..6b448a3 100644
--- a/share/html/Elements/ShowCustomFields
+++ b/share/html/Elements/ShowCustomFields
@@ -45,7 +45,7 @@
 %# those contributions and any derivatives thereof.
 %#
 %# END BPS TAGGED BLOCK }}}
-% $m->callback( CallbackName => 'BeforeCustomFields' );
+% $m->callback( CallbackName => 'BeforeCustomFields', Object => $Object, Grouping => $Grouping );
 % if ($Table) {
 <table>
 % }
@@ -69,12 +69,13 @@
 </ul>
 % }
     </td>
+% $m->callback( CallbackName => 'AfterCustomFieldValue', CustomField => $CustomField, Object => $Object, Grouping => $Grouping );
   </tr>
 % }
 % if ($Table) {
 </table>
 % }
-% $m->callback( CallbackName => 'AfterCustomFields', Object => $Object );
+% $m->callback( CallbackName => 'AfterCustomFields', Object => $Object, Grouping => $Grouping );
 <%INIT>
 $m->callback(
     %ARGS,

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


More information about the Rt-commit mailing list