From e892becc5006222e6d88202adcdbe33992debbec Mon Sep 17 00:00:00 2001 From: diminator Date: Tue, 8 Sep 2015 14:43:06 +0200 Subject: [PATCH] contract settings update --- js/components/ascribe_forms/form_contract_agreement.js | 4 +++- js/components/ascribe_settings/contract_settings.js | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/js/components/ascribe_forms/form_contract_agreement.js b/js/components/ascribe_forms/form_contract_agreement.js index 4079b741..783f6696 100644 --- a/js/components/ascribe_forms/form_contract_agreement.js +++ b/js/components/ascribe_forms/form_contract_agreement.js @@ -56,12 +56,14 @@ let ContractAgreementForm = React.createClass({ }, getFormData(){ - return {'appendix': {'default': this.refs.form.refs.appendix.state.value}}; + return {'appendix': {'default': this.refs.form.refs.appendix.state.value}, + 'contract': this.state.contractList[this.state.selectedContract].id}; }, getContracts() { if (this.state.contractList && this.state.contractList.length > 0) { let contractList = this.state.contractList; + console.log(contractList) return ( { - contract.public = true; + contract.is_public = true; ContractListActions.changeContract(contract) .then(() => ContractListActions.fetchContractList()) .catch((err) => {