👾 bug fix: campaign name does not get pushed when saving
This commit is contained in:
parent
ba9ab9f324
commit
9ad97c11e1
2 changed files with 13 additions and 0 deletions
|
@ -765,4 +765,14 @@ class CRM_TwingleCampaign_BAO_TwingleProject extends Campaign {
|
||||||
unset($this->values['payment_methods']);
|
unset($this->values['payment_methods']);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* ## Set project name
|
||||||
|
*
|
||||||
|
* @param string $name
|
||||||
|
*/
|
||||||
|
public function setName(string $name): void {
|
||||||
|
$this->values['name'] = $name;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -269,6 +269,9 @@ function _validateAndSendInput($id, $campaign_type_id): bool {
|
||||||
// Update project
|
// Update project
|
||||||
$project->update($customFields);
|
$project->update($customFields);
|
||||||
|
|
||||||
|
// Set name
|
||||||
|
$project->setName($_POST['title']);
|
||||||
|
|
||||||
// Validate project values
|
// Validate project values
|
||||||
$validation = $project->validate();
|
$validation = $project->validate();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue