mirror of
https://github.com/ascribe/onion.git
synced 2024-12-22 17:33:14 +01:00
Hotfix for sending contract agreements without appendices
This commit is contained in:
parent
6e9b1ac181
commit
38ef18a192
@ -62,7 +62,11 @@ let SendContractAgreementForm = React.createClass({
|
||||
},
|
||||
|
||||
getFormData() {
|
||||
return {'appendix': {'default': this.refs.form.refs.appendix.state.value}};
|
||||
const appendixValue = this.refs.form.refs.appendix.state.value;
|
||||
|
||||
if (appendixValue) {
|
||||
return { 'appendix': { 'default': appendixValue } };
|
||||
}
|
||||
},
|
||||
|
||||
getContracts() {
|
||||
@ -124,7 +128,8 @@ let SendContractAgreementForm = React.createClass({
|
||||
<Property
|
||||
name='appendix'
|
||||
checkboxLabel={getLangText('Add appendix to the contract')}
|
||||
expanded={false}>
|
||||
expanded={false}
|
||||
style={{paddingBottom: 0}}>
|
||||
<span>{getLangText('Appendix')}</span>
|
||||
{/* We're using disabled on a form here as PropertyCollapsible currently
|
||||
does not support the disabled + overrideForm functionality */}
|
||||
|
Loading…
Reference in New Issue
Block a user