| .. | .. |
|---|
| 140 | 140 | _current.fields.forEach(function(f) { |
|---|
| 141 | 141 | if (f.resource) |
|---|
| 142 | 142 | refsFields.push(f) |
|---|
| 143 | + |
|---|
| 143 | 144 | }); |
|---|
| 144 | 145 | |
|---|
| 145 | 146 | var that = this; |
|---|
| .. | .. |
|---|
| 153 | 154 | console.log('promises: ' + promises.length + ' ') |
|---|
| 154 | 155 | console.log(promises) |
|---|
| 155 | 156 | $q.all(promises).then(function() { |
|---|
| 157 | + |
|---|
| 156 | 158 | for (var k in refs) { |
|---|
| 157 | 159 | var pk = that.getPk(that.getMetadata(that.getField(k).resource)) |
|---|
| 158 | 160 | console.log('PK field for ' + k + ' is ' + pk) |
|---|
| .. | .. |
|---|
| 167 | 169 | console.log('Ready for combo for ' + k) |
|---|
| 168 | 170 | console.log(comboData); |
|---|
| 169 | 171 | } |
|---|
| 170 | | - |
|---|
| 172 | + _current.fields.forEach(function(f) { |
|---|
| 173 | + if (f.values) |
|---|
| 174 | + refs[f.name] = f.values; |
|---|
| 175 | + }); |
|---|
| 171 | 176 | }) |
|---|
| 177 | + |
|---|
| 178 | + console.log(refs); |
|---|
| 172 | 179 | return refs; |
|---|
| 173 | 180 | } |
|---|
| 174 | 181 | |
|---|