Commit 306e3659fe5c3412143b9e1f88f7024f2b1dfac5

Authored by Caio Almeida
1 parent f9219ef3

Fixing bug with interaction with a created proposal

ConfJuvApp/builds/confjuv-dev.apk
No preview for this file type
ConfJuvApp/builds/confjuvapp-live.apk
No preview for this file type
ConfJuvApp/builds/confjuvapp-web.zip
No preview for this file type
ConfJuvApp/www/js/controllers.js
@@ -498,9 +498,11 @@ angular.module('confjuvapp.controllers', []) @@ -498,9 +498,11 @@ angular.module('confjuvapp.controllers', [])
498 } 498 }
499 } 499 }
500 var proposal = { 500 var proposal = {
  501 + id: resp.data.article.id,
501 title: data.title, 502 title: data.title,
502 body: data.description, 503 body: data.description,
503 - topic: topic 504 + topic: topic,
  505 + author: { name: $scope.user.name, id: $scope.user.id }
504 }; 506 };
505 $scope.proposalList.push(proposal); 507 $scope.proposalList.push(proposal);
506 $scope.cards.push(proposal); 508 $scope.cards.push(proposal);