Commit 54adb4c6f27bee8268d10e73716fd47cfdf66cec
Exists in
master
and in
4 other branches
Merge branch 'master' into staging
Showing
3 changed files
with
4 additions
and
1 deletions
Show diff stats
src/app/components/article-service/article.service.js
... | ... | @@ -141,7 +141,7 @@ |
141 | 141 | |
142 | 142 | function getResponseByProposalId (proposalId) { |
143 | 143 | var url = service.apiArticles + proposalId + '/children?content_type=ProposalsDiscussionPlugin::Response&limit=1'; |
144 | - // console.log(url); | |
144 | + | |
145 | 145 | // var paramsExtended = {}; |
146 | 146 | |
147 | 147 | return UtilService.get(url); | ... | ... |
src/app/components/dialoga-service/dialoga.service.js
src/app/pages/programas/programa.controller.js
... | ... | @@ -354,8 +354,10 @@ |
354 | 354 | |
355 | 355 | vm.DialogaService.getResponseByProposalId(proposal.id) |
356 | 356 | .then(function(data){ |
357 | + | |
357 | 358 | proposal.response.content = data.articles[0].body; |
358 | 359 | toggle(); |
360 | + | |
359 | 361 | }).catch(function(){ |
360 | 362 | proposal.response.error = false; |
361 | 363 | }).finally(function(){ | ... | ... |