[Rt-commit] rt branch, 3.8-trunk, updated. rt-3.8.7-310-gd9f271f

Ruslan Zakirov ruz at bestpractical.com
Wed Mar 31 15:10:25 EDT 2010


The branch, 3.8-trunk has been updated
       via  d9f271fd31124b4a6bf24500463cec1ab20269b0 (commit)
      from  7b84cd29b14666b0984bde2e64b693547af64ea6 (commit)

Summary of changes:
 lib/RT/Interface/Web/Request.pm |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

- Log -----------------------------------------------------------------
commit d9f271fd31124b4a6bf24500463cec1ab20269b0
Author: Ruslan Zakirov <ruz at bestpractical.com>
Date:   Wed Mar 31 23:07:08 2010 +0400

    sort callbacks with a root
    
    We now respect plugins' order, but local callbacks
    should be sorted anyway to keep order for old plugins
    and local customizations

diff --git a/lib/RT/Interface/Web/Request.pm b/lib/RT/Interface/Web/Request.pm
index 573c69a..4107ca2 100644
--- a/lib/RT/Interface/Web/Request.pm
+++ b/lib/RT/Interface/Web/Request.pm
@@ -164,7 +164,7 @@ sub callback {
             # Skip backup files, files without a leading package name,
             # and files we've already seen
             grep !$seen{$_}++ && !m{/\.} && !m{~$} && m{^/Callbacks/[^/]+\Q$page/$name\E$},
-            map $self->interp->resolver->glob_path($path, $_),
+            map sort $self->interp->resolver->glob_path($path, $_),
             @roots
         );
         foreach my $comp (keys %seen) {

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


More information about the Rt-commit mailing list