✨️ avoid "missing index" warnings
This commit is contained in:
parent
938371c8c5
commit
15b496de1c
1 changed files with 9 additions and 5 deletions
|
@ -562,13 +562,17 @@ class CRM_TwingleCampaign_BAO_TwingleProject extends Campaign {
|
|||
}
|
||||
|
||||
// Change DateTime string into timestamp
|
||||
if (isset($values['last_update'])) {
|
||||
$values['last_update'] =
|
||||
self::getTimestamp($values['last_update']);
|
||||
}
|
||||
|
||||
// Default project_type to ''
|
||||
if (isset($values['type'])) {
|
||||
$values['type'] = $values['type'] == 'default'
|
||||
? ''
|
||||
: $values['type'];
|
||||
}
|
||||
|
||||
// Cast project target to integer
|
||||
if (isset($values['project_target'])) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue