Permalink
Browse files

Update CreateQuoteLightningActionController.js

Added handling for contact save
  • Loading branch information...
Sonia
Sonia committed Jul 18, 2017
1 parent cb99abf commit 234b31d74c6e0ed6f71c4aae63e9c5f7f3082ba2
Showing with 2 additions and 2 deletions.
  1. +2 −2 CreateQuoteLightningActionController.js
@@ -12,7 +12,6 @@
if(state === "SUCCESS") {
component.set("v.opportunity", response.getReturnValue());
component.set("v.quote.Account","v.myQuoteName");
component.set("v.quote.ContactId","v.myContact");
} else {
console.log('Problem getting opportunity, response state: ' + state);
@@ -36,7 +35,8 @@
var saveQuoteAction = component.get("c.saveQuoteWithOpportunity");
saveQuoteAction.setParams({
"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

0 comments on commit 234b31d

Please sign in to comment.