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

Jason Guiditta
Fri, 29 May 2009 16:47:51 -0000

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">
>
> There are no tasks that match this filter.
> - Type: <%= task_types.select {|type|
> type[1]==task_type}[0][0] %>
> +             <%if task_types %>
> + Type: <%= task_types.select
{|type|
> type[1]==task_type}[0][0] %>
> +             <% end %>
> State: <%= task_states.select
{|state|
> state[1]==task_state}[0][0] %>
> Choose another filter to display tasks.
>
> --
> 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>