mirror of https://github.com/apache/cloudstack.git
Detail view: Fix error on refresh from async action
Fixes error on detail view actions when list view subsection has a custom ID
This commit is contained in:
parent
8e06cf5593
commit
2ed41270ce
|
|
@ -46,11 +46,13 @@
|
|||
|
||||
// Refresh detail view context
|
||||
if ($detailView) {
|
||||
$.extend(
|
||||
$detailView.data('view-args').context[
|
||||
$detailView.data('view-args').section
|
||||
][0], newData
|
||||
);
|
||||
var detailViewArgs = $detailView.data('view-args');
|
||||
var listViewArgs = $listView.data('view-args');
|
||||
var contextID = listViewArgs.sections && listViewArgs.sections[detailViewArgs.section].id ?
|
||||
listViewArgs.sections[detailViewArgs.section].id :
|
||||
detailViewArgs.section;
|
||||
|
||||
$.extend($detailView.data('view-args').context[contextID][0], newData);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue