File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -22,9 +22,9 @@ angular.module(
22
22
nodePath = '/node/:nodeId' ;
23
23
nodeFields = [ ] ;
24
24
//nodeFields['indicators'] = 'field_mcda_indicators'
25
- nodeFields [ 'indicators' ] = 'field_indicators ' ;
25
+ nodeFields [ 'indicators' ] = 'field_mcda_indicators ' ;
26
26
nodeFields [ 'criteriaFunction' ] = 'field_mcda_criteria_function' ;
27
- nodeFields [ 'decisionStrategy' ] = 'field_mcda_indicators ' ;
27
+ nodeFields [ 'decisionStrategy' ] = 'field_mcda_decision_strategy ' ;
28
28
29
29
// <editor-fold defaultstate="open" desc="=== drupalRestApi ===========================">
30
30
$this . drupalRestApi = { } ;
@@ -102,7 +102,7 @@ angular.module(
102
102
103
103
getObjectFromDrupalField = function ( node , field ) {
104
104
if ( ! node || node === null || node === undefined ||
105
- ! node . field_indicators || node [ field ] === null || node [ field ] === undefined ) {
105
+ ! node [ field ] || node [ field ] === null || node [ field ] === undefined ) {
106
106
console . log ( 'node object is null or field "' + field + '" is empty!' ) ;
107
107
return [ ] ;
108
108
} else {
You can’t perform that action at this time.
0 commit comments