Fix crash when job script is nil.
authorTom Clegg <tom@curoverse.com>
Fri, 7 Mar 2014 18:31:59 +0000 (13:31 -0500)
committerTom Clegg <tom@curoverse.com>
Fri, 7 Mar 2014 18:31:59 +0000 (13:31 -0500)
apps/workbench/app/views/users/_tables.html.erb

index 320f32c5716f67a346eef72bd03dfd65478fc572..1592632f4adf927af095311614d00ceda6831331 100644 (file)
@@ -27,7 +27,7 @@
           <tr>
             <td>
               <small>
-               <%= link_to j.script[0..31], job_path(j.uuid) %>
+               <%= link_to((j.script.andand[0..31] || j.uuid), job_path(j.uuid)) %>
               </small>
             </td>