Skip to content

Commit 15aa2a2

Browse files
committed
#2 change field names again
1 parent abd030c commit 15aa2a2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/scripts/services/drupalService.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ angular.module(
2222
nodePath = '/node/:nodeId';
2323
nodeFields = [];
2424
//nodeFields['indicators'] = 'field_mcda_indicators'
25-
nodeFields['indicators'] = 'field_indicators';
25+
nodeFields['indicators'] = 'field_mcda_indicators';
2626
nodeFields['criteriaFunction'] = 'field_mcda_criteria_function';
27-
nodeFields['decisionStrategy'] = 'field_mcda_indicators';
27+
nodeFields['decisionStrategy'] = 'field_mcda_decision_strategy';
2828

2929
// <editor-fold defaultstate="open" desc="=== drupalRestApi ===========================">
3030
$this.drupalRestApi = {};
@@ -102,7 +102,7 @@ angular.module(
102102

103103
getObjectFromDrupalField = function(node, field) {
104104
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) {
106106
console.log('node object is null or field "' + field + '" is empty!');
107107
return [];
108108
} else {

0 commit comments

Comments
 (0)