From 51a44589c2f59fca73ed8b1f3933c5d6cffae50c Mon Sep 17 00:00:00 2001 From: Ingo Fischer Date: Wed, 9 Oct 2019 11:37:54 +0200 Subject: [PATCH] Fix list zones updated at same time In case multiple zones have the same update timestamp (updated_at) the UI did not show any zone and a JS console listed an error "Error: [ngRepeat:dupes] Duplicates in a repeater are not allowed." To fix it addTimestampIds needs to get the correct parameter order, i.e. pass the name of the ID column before the timestamp column name. Closes-Bug: 1734601 Change-Id: Ib91f873e8f21b71a71b1684317db276b72ae8014 (cherry picked from commit c6d53e4f8a36046c55e08272bf3859d5cb4c7c44) --- .../resources/os-designate-zone/os-designate-zone.module.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/designatedashboard/static/designatedashboard/resources/os-designate-zone/os-designate-zone.module.js b/designatedashboard/static/designatedashboard/resources/os-designate-zone/os-designate-zone.module.js index 3c8bf61..b8a4048 100644 --- a/designatedashboard/static/designatedashboard/resources/os-designate-zone/os-designate-zone.module.js +++ b/designatedashboard/static/designatedashboard/resources/os-designate-zone/os-designate-zone.module.js @@ -194,7 +194,7 @@ // listFunctions are expected to return data in "items" response.data.items = response.data.zones; - util.addTimestampIds(response.data.items, 'updated_at'); + util.addTimestampIds(response.data.items, 'id', 'updated_at'); return response; });