[Rt-commit] rt branch, 4.4/build-format-helper-webpath-fix, created. rt-4.2.12-353-g693eede

? sunnavy sunnavy at bestpractical.com
Thu Oct 29 13:16:10 EDT 2015


The branch, 4.4/build-format-helper-webpath-fix has been created
        at  693eede4045c22a2cefa311c1bce75529a3fcfc3 (commit)

- Log -----------------------------------------------------------------
commit 693eede4045c22a2cefa311c1bce75529a3fcfc3
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Fri Oct 30 01:14:33 2015 +0800

    fix WebPath for BuildFormatString helper url
    
    Fixes: I#31319

diff --git a/share/html/Search/Elements/EditFormat b/share/html/Search/Elements/EditFormat
index 3863f39..2d6f3c0 100644
--- a/share/html/Search/Elements/EditFormat
+++ b/share/html/Search/Elements/EditFormat
@@ -61,7 +61,7 @@ jQuery( function() {
         var name = jQuery(this).attr('name');
         var form = jQuery(this).closest('form');
         jQuery.ajax({
-            url: '/Helpers/BuildFormatString?' + name + '=1&' + form.serialize(),
+            url: '<% RT->Config->Get('WebPath') %>/Helpers/BuildFormatString?' + name + '=1&' + form.serialize(),
             success: function (data) {
                 if ( data.status == 'success' ) {
                     form.find('input[name=Format]').val(data.Format);

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


More information about the rt-commit mailing list