[Bps-public-commit] rt-extension-assets branch, master, updated. 1.01-2-g95f98cd

Alex Vandiver alexmv at bestpractical.com
Fri Aug 15 14:20:41 EDT 2014


The branch, master has been updated
       via  95f98cd9c9ea9f5beedc64b010d9c29fc5c565a3 (commit)
      from  4ea77a4be9f6976b308f567f42d8e2d99b100ee2 (commit)

Summary of changes:
 html/Asset/Elements/ShowPeople | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

- Log -----------------------------------------------------------------
commit 95f98cd9c9ea9f5beedc64b010d9c29fc5c565a3
Author: Alex Vandiver <alexmv at bestpractical.com>
Date:   Fri Aug 15 14:20:33 2014 -0400

    Avoid errors when the member of a singular role group is disabled

diff --git a/html/Asset/Elements/ShowPeople b/html/Asset/Elements/ShowPeople
index 7886bae..af4f466 100644
--- a/html/Asset/Elements/ShowPeople
+++ b/html/Asset/Elements/ShowPeople
@@ -55,7 +55,9 @@ my $CatalogObj = $AssetObj->CatalogObj;
 % for my $role ($AssetObj->Roles) {
 <tr><td class="label"><% loc($role) %>:
 % if ($AssetObj->Role($role)->{Single}) {
-%      my $user = $AssetObj->RoleGroup($role)->UserMembersObj(Recursively => 0)->Next;
+%      my $users = $AssetObj->RoleGroup($role)->UserMembersObj(Recursively => 0);
+%      $users->FindAllRows;
+%      my $user = $users->Next;
 <& /Elements/ShowUser, User => $user, Link => 1 &></td></tr>
 %      next if $user->id == RT->Nobody->id;
 <tr><td>

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


More information about the Bps-public-commit mailing list