mirror of https://github.com/apache/cloudstack.git
cloudstack 3.0 UI - domain page - fix a JS error that appears after a new domain is created - "context[$detailView.data('view-args').section] is undefined" [reviewed-by: Brian]
This commit is contained in:
parent
b192bfc374
commit
e2196dd961
|
|
@ -857,7 +857,8 @@
|
|||
var tabFilter = options.tabFilter;
|
||||
var context = options.context ? options.context : {};
|
||||
|
||||
if (options.newData) {
|
||||
if(options.newData &&
|
||||
($detailView.data('view-args').section != null && context[$detailView.data('view-args').section] != null && context[$detailView.data('view-args').section].length > 0)) {
|
||||
$.extend(
|
||||
context[$detailView.data('view-args').section][0],
|
||||
options.newData
|
||||
|
|
|
|||
Loading…
Reference in New Issue