[Ovirt-devel] [PATCH server] fixed UI update bug -- ignore task_types when it doesn't exist

Jason Guiditta jason.guiditta at gmail.com
Fri May 29 16:47:51 UTC 2009


ACK

On Fri, May 29, 2009 at 12:09 AM, Scott Seago <sseago at redhat.com> wrote:

>
> Signed-off-by: Scott Seago <sseago at redhat.com>
> ---
>  src/app/views/task/_show.rhtml |    4 +++-
>  1 files changed, 3 insertions(+), 1 deletions(-)
>
> diff --git a/src/app/views/task/_show.rhtml
> b/src/app/views/task/_show.rhtml
> index f4e001d..ff7d434 100644
> --- a/src/app/views/task/_show.rhtml
> +++ b/src/app/views/task/_show.rhtml
> @@ -75,7 +75,9 @@
>           <img src="images/jumbo_find.png" alt="find" width="145"
> height="145">
>           <div class="no-grid-items-text">
>             <h2>There are no tasks that match this filter.</h2>
> -            <p>Type: <strong><%= task_types.select {|type|
> type[1]==task_type}[0][0] %></strong></p>
> +             <%if task_types %>
> +               <p>Type: <strong><%= task_types.select {|type|
> type[1]==task_type}[0][0] %></strong></p>
> +             <% end %>
>             <p>State: <strong><%= task_states.select {|state|
> state[1]==task_state}[0][0] %></strong></p><br />
>             <p>Choose another filter to display tasks.</p>
>           </div>
> --
> 1.6.0.6
>
> _______________________________________________
> Ovirt-devel mailing list
> Ovirt-devel at redhat.com
> https://www.redhat.com/mailman/listinfo/ovirt-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/ovirt-devel/attachments/20090529/5db26407/attachment.htm>


More information about the ovirt-devel mailing list