[ARVADOS] updated: bcc477ed88c04b3200a70d16f1fc99da11c670f8

git at public.curoverse.com git at public.curoverse.com
Fri May 2 10:33:11 EDT 2014


Summary of changes:
 apps/workbench/app/models/arvados_resource_list.rb |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

       via  bcc477ed88c04b3200a70d16f1fc99da11c670f8 (commit)
      from  2bb2789ff129b4112d81ba343fadfb7ad362ecd1 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit bcc477ed88c04b3200a70d16f1fc99da11c670f8
Author: Tom Clegg <tom at curoverse.com>
Date:   Fri May 2 10:32:52 2014 -0400

    Fix crash if item has no name (backported from 1970-folder-view)

diff --git a/apps/workbench/app/models/arvados_resource_list.rb b/apps/workbench/app/models/arvados_resource_list.rb
index ba3f0a0..329033f 100644
--- a/apps/workbench/app/models/arvados_resource_list.rb
+++ b/apps/workbench/app/models/arvados_resource_list.rb
@@ -158,8 +158,9 @@ class ArvadosResourceList
     end
   end
 
+  # Note: this arbitrarily chooses one of (possibly) multiple names.
   def name_for item_or_uuid
-    links_for(item_or_uuid, 'name').first.name
+    links_for(item_or_uuid, 'name').first.andand.name
   end
 
 end

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list