set empty value for 'allow_more' to 'default'
This commit is contained in:
parent
4b656084cc
commit
45e42fbde8
1 changed files with 5 additions and 0 deletions
|
@ -311,6 +311,11 @@ class CRM_TwingleCampaign_BAO_TwingleProject extends Campaign {
|
||||||
// Cast project target to integer
|
// Cast project target to integer
|
||||||
$values['project_target'] = (int) $values['project_target'];
|
$values['project_target'] = (int) $values['project_target'];
|
||||||
|
|
||||||
|
// Set default for 'allow_more'
|
||||||
|
$values['allow_more'] = empty($values['allow_more'])
|
||||||
|
? False
|
||||||
|
: True;
|
||||||
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue