[Rt-commit] rt branch, 3.9-trunk, updated. rt-3.9.4-448-gaafceca

Emannuel Lacour elacour at bestpractical.com
Wed Nov 10 11:14:52 EST 2010


The branch, 3.9-trunk has been updated
       via  aafceca9b93263a2d79eff4c9b38a8a88004af90 (commit)
      from  29f4a24f2127b9f8cd8cbc203eaa139087b2d841 (commit)

Summary of changes:
 share/html/Admin/CustomFields/Objects.html |    3 +++
 share/html/Elements/Tabs                   |    4 +---
 2 files changed, 4 insertions(+), 3 deletions(-)

- Log -----------------------------------------------------------------
commit aafceca9b93263a2d79eff4c9b38a8a88004af90
Author: Emmanuel Lacour <elacour at easter-eggs.com>
Date:   Wed Nov 10 17:13:36 2010 +0100

    Non RT-Queue CustomFields needs to be applied globally so let us do it quickly with the "Apply To" tab

diff --git a/share/html/Admin/CustomFields/Objects.html b/share/html/Admin/CustomFields/Objects.html
index ab9a509..c0af6d8 100644
--- a/share/html/Admin/CustomFields/Objects.html
+++ b/share/html/Admin/CustomFields/Objects.html
@@ -63,6 +63,7 @@
 <input type="checkbox" name="AddCustomField-<% $CF->id %>" value="0" />
 <&|/l&>check this box to apply this Custom Field to all objects.</&>
 
+% if ( $CF->LookupType =~ /^RT::Queue-/io ) {
 <h2><&|/l&>Selected objects</&></h2>
 <& /Elements/CollectionList,
     OrderBy => 'id',
@@ -98,6 +99,8 @@
 
 % }
 
+% }
+
 <& /Elements/Submit, Name => 'UpdateObjs' &>
 </form>
 
diff --git a/share/html/Elements/Tabs b/share/html/Elements/Tabs
index e484ff5..95c34e1 100755
--- a/share/html/Elements/Tabs
+++ b/share/html/Elements/Tabs
@@ -296,9 +296,7 @@ if ( $request_path !~ qr{^/SelfService/} ) {
             $tabs->child( 'group-rights' => title => loc('Group Rights') => path => "/Admin/CustomFields/GroupRights.html?id=" . $id );
             $tabs->child( 'user-rights' => title => loc('User Rights') => path => "/Admin/CustomFields/UserRights.html?id=" . $id );
 
-            if ( $obj->LookupType =~ /^RT::Queue-/io ) {
-                $tabs->child( 'applies-to' => title => loc('Applies to'), path => "/Admin/CustomFields/Objects.html?id=" . $id );
-            }
+            $tabs->child( 'applies-to' => title => loc('Applies to'), path => "/Admin/CustomFields/Objects.html?id=" . $id );
 
         }
 

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


More information about the Rt-commit mailing list