Skip to content

Commit

Permalink
Update CreateQuoteLightningActionController.js
Browse files Browse the repository at this point in the history
Added handling for contact save
  • Loading branch information
Sonia committed Jul 18, 2017
1 parent cb99abf commit 234b31d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CreateQuoteLightningActionController.js
Expand Up @@ -12,7 +12,6 @@
if(state === "SUCCESS") { if(state === "SUCCESS") {
component.set("v.opportunity", response.getReturnValue()); component.set("v.opportunity", response.getReturnValue());
component.set("v.quote.Account","v.myQuoteName"); component.set("v.quote.Account","v.myQuoteName");
component.set("v.quote.ContactId","v.myContact");


} else { } else {
console.log('Problem getting opportunity, response state: ' + state); console.log('Problem getting opportunity, response state: ' + state);
Expand All @@ -36,7 +35,8 @@
var saveQuoteAction = component.get("c.saveQuoteWithOpportunity"); var saveQuoteAction = component.get("c.saveQuoteWithOpportunity");
saveQuoteAction.setParams({ saveQuoteAction.setParams({
"quote": component.get("v.newQuote"), "quote": component.get("v.newQuote"),
"opportunityId": component.get("v.recordId") "opportunityId": component.get("v.recordId"),
"contactId": component.get("v.myContact.ContactId")
}); });


// Configure the response handler for the action // Configure the response handler for the action
Expand Down

0 comments on commit 234b31d

Please sign in to comment.