Revision 57147
Added by Sandro La Bruzzo over 4 years ago
queryController.js | ||
---|---|---|
13 | 13 |
|
14 | 14 |
queryService.getItem($scope.identifier).success(function (data) { |
15 | 15 |
if ('result' in data) { |
16 |
if ('hits' in data.result) { |
|
16 |
if ('hits' in data.result && data.result['hits'] != null && data.result['hits'].length >0 ) {
|
|
17 | 17 |
|
18 | 18 |
var summary = data.result.hits[0]; |
19 | 19 |
var relations = data.result.hits[1]; |
... | ... | |
30 | 30 |
$(this).tab('show') |
31 | 31 |
}); |
32 | 32 |
} |
33 |
else { |
|
34 |
$scope.item = {}; |
|
35 |
$scope.nf =true |
|
36 |
} |
|
33 | 37 |
} |
34 | 38 |
}).error(function (data) { |
35 | 39 |
$scope.hideSpinner(); |
Also available in: Unified diff
fixed problem on missing item