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"
This commit is contained in:
parent
74754f0a56
commit
a62fb3a1f9
|
|
@ -859,7 +859,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