Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ayduns
ukgiftaid
Commits
08a5880d
Commit
08a5880d
authored
May 19, 2020
by
Rich
Browse files
WIP
parent
302ce646
Changes
2
Hide whitespace changes
Inline
Side-by-side
CRM/Civigiftaid/Upgrader.php
View file @
08a5880d
...
...
@@ -180,6 +180,17 @@ class CRM_Civigiftaid_Upgrader extends CRM_Civigiftaid_Upgrader_Base {
return
TRUE
;
}
/**
* Add valid_from_date
*
* @see https://lab.civicrm.org/extensions/ukgiftaid/-/issues/1
*/
public
function
upgrade_3109
()
{
$this
->
log
(
'Adding Valid From Date'
);
$this
->
executeSqlFile
(
'sql/add_valid_from_date.sql'
);
return
TRUE
;
}
private
function
setCustomFields
()
{
$amountCustomField
=
civicrm_api3
(
'CustomField'
,
'getsingle'
,
[
'custom_group_id'
=>
"Gift_Aid"
,
...
...
xml/auto_install.xml
View file @
08a5880d
...
...
@@ -104,6 +104,22 @@
<column_name>
start_date
</column_name>
<custom_group_name>
Gift_Aid_Declaration
</custom_group_name>
</CustomField>
<CustomField>
<name>
valid_from_date
</name>
<label>
Valid From Date
</label>
<column_name>
valid_from_date
</column_name>
<custom_group_name>
Gift_Aid_Declaration
</custom_group_name>
<data_type>
Date
</data_type>
<html_type>
Select Date
</html_type>
<is_required>
1
</is_required>
<is_searchable>
0
</is_searchable>
<is_search_range>
0
</is_search_range>
<weight>
4
</weight>
<is_active>
1
</is_active>
<is_view>
0
</is_view>
<text_length>
255
</text_length>
<date_format>
dd-mm-yy
</date_format>
</CustomField>
<CustomField>
<name>
End_Date
</name>
<label>
End Date
</label>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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