Job detail event viewer

Fixed https://trello.com/c/uGFQjYn0/323-host-event-order-differs-between-host-events-list-and-host-event-dialog. Not sure why the event viewer sort was by ID rather than host_name. The reason might be that up until about 3 weeks ago the host_name could be empty, if a host was deleted.
This commit is contained in:
Chris Houseknecht 2014-08-18 10:41:14 -04:00
parent 15c5247f90
commit f4cce01af0

View File

@ -254,7 +254,7 @@ angular.module('EventViewerHelper', ['ModalDialog', 'Utilities', 'EventsViewerFo
});
url += (/\/$/.test(url)) ? '?' : '&';
url += (parent_id) ? 'parent=' + parent_id + '&page_size=50&order_by=id' : 'page_size=50&order_by=id';
url += (parent_id) ? 'parent=' + parent_id + '&page_size=50&order=host_name' : 'page_size=50&order=host_name';
GetEvent({
url: url,