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 c6d53e4f8a
)
This commit is contained in:
parent
d6dfda1b5b
commit
e1e704c236
|
@ -194,7 +194,7 @@
|
||||||
// listFunctions are expected to return data in "items"
|
// listFunctions are expected to return data in "items"
|
||||||
response.data.items = response.data.zones;
|
response.data.items = response.data.zones;
|
||||||
|
|
||||||
util.addTimestampIds(response.data.items, 'updated_at');
|
util.addTimestampIds(response.data.items, 'id', 'updated_at');
|
||||||
|
|
||||||
return response;
|
return response;
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue