Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
extensions
cc.tadpole.petitionemail
Commits
51002b9c
Commit
51002b9c
authored
Dec 02, 2014
by
Jamie McClelland
Browse files
ensure all profiles/custom fields are properly created.
parent
64f217f4
Changes
1
Hide whitespace changes
Inline
Side-by-side
CRM/Petitionemail/Upgrader.php
View file @
51002b9c
...
...
@@ -80,4 +80,15 @@ class CRM_Petitionemail_Upgrader extends CRM_Petitionemail_Upgrader_Base {
return
TRUE
;
}
/**
* Ensure all profiles and custom fields are created.
*/
function
upgrade_1003
()
{
// These are indempotent.
petitionemail_create_custom_fields
();
petitionemail_get_profile_id
(
'petitionemail_profile_matching_fields'
);
petitionemail_get_profile_id
(
'petitionemail_profile_default_contact'
);
petitionemail_get_profile_id
(
'petitionemail_profile_default_activity'
);
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment