[Rt-commit] rt branch, 4.4-trunk, updated. rt-4.4.2-42-gdeb0cdd

Jim Brandt jbrandt at bestpractical.com
Thu Oct 26 13:09:31 EDT 2017


The branch, 4.4-trunk has been updated
       via  deb0cdd8bd73bc76156ed390e30f155ec43dcceb (commit)
      from  1aaa79b546262b02b0729123941676a0e5e35beb (commit)

Summary of changes:
 lib/RT.pm | 1 +
 1 file changed, 1 insertion(+)

- Log -----------------------------------------------------------------
commit deb0cdd8bd73bc76156ed390e30f155ec43dcceb
Author: Jim Brandt <jbrandt at bestpractical.com>
Date:   Tue Oct 17 15:41:08 2017 -0400

    Add RT::Asset to the list of objects to build table attributes on init
    
    Without this, calls to methods like ReadableAttributes can return
    undef if the attributes table in RT::Record hasn't been
    populated yet. This was the case when querying assets via the
    REST 2.0 API.

diff --git a/lib/RT.pm b/lib/RT.pm
index 097ce2e..581c689 100644
--- a/lib/RT.pm
+++ b/lib/RT.pm
@@ -550,6 +550,7 @@ sub _BuildTableAttributes {
         RT::ObjectClass
         RT::ObjectTopic
         RT::Topic
+        RT::Asset
     );
 }
 

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


More information about the rt-commit mailing list