Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
civirules
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Extensions
civirules
Commits
658705c7
Commit
658705c7
authored
4 years ago
by
Joost
Browse files
Options
Downloads
Patches
Plain Diff
use the conditions.json file to store the table name for participant status condition class name
parent
99318cec
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!59
fixes #81
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CRM/Civirules/Upgrader.php
+2
-11
2 additions, 11 deletions
CRM/Civirules/Upgrader.php
sql/conditions.json
+1
-1
1 addition, 1 deletion
sql/conditions.json
with
3 additions
and
12 deletions
CRM/Civirules/Upgrader.php
+
2
−
11
View file @
658705c7
...
...
@@ -715,17 +715,8 @@ class CRM_Civirules_Upgrader extends CRM_Civirules_Upgrader_Base {
}
public
function
upgrade_2046
(){
$condition_id
=
civicrm_api3
(
'CiviRuleCondition'
,
'getValue'
,
[
'return'
=>
'id'
,
'class_name'
=>
'CRM_CivirulesConditions_Participant_ParticipantStatus'
]);
$res
=
civicrm_api3
(
'CiviRuleCondition'
,
'create'
,[
'id'
=>
$condition_id
,
'class_name'
=>
'CRM_CivirulesConditions_Participant_Status'
]);
return
!
$res
[
'is_error'
];
CRM_Civirules_Utils_Upgrader
::
insertActionsFromJson
(
$this
->
extensionDir
.
DIRECTORY_SEPARATOR
.
'sql/conditions.json'
);
return
TRUE
;
}
}
...
...
This diff is collapsed.
Click to expand it.
sql/conditions.json
+
1
−
1
View file @
658705c7
...
...
@@ -59,7 +59,7 @@
{
"name"
:
"field_value_comparison"
,
"label"
:
"Field Value Comparison"
,
"class_name"
:
"CRM_CivirulesConditions_FieldValueComparison"
},
{
"name"
:
"event_type"
,
"label"
:
"Event Type is"
,
"class_name"
:
"CRM_CivirulesConditions_Event_EventType"
},
{
"name"
:
"participant_role"
,
"label"
:
"Participant has role"
,
"class_name"
:
"CRM_CivirulesConditions_Participant_ParticipantRole"
},
{
"name"
:
"participant_status"
,
"label"
:
"Participant status is (not) one of"
,
"class_name"
:
"CRM_CivirulesConditions_Participant_
Participant
Status"
},
{
"name"
:
"participant_status"
,
"label"
:
"Participant status is (not) one of"
,
"class_name"
:
"CRM_CivirulesConditions_Participant_Status"
},
{
"name"
:
"activity_is_future_date"
,
"label"
:
"Activity Date in the Future"
,
"class_name"
:
"CRM_CivirulesConditions_Activity_ActivityIsFuture"
},
{
"name"
:
"activity_is_past_date"
,
"label"
:
"Activity Date in the Past"
,
"class_name"
:
"CRM_CivirulesConditions_Activity_ActivityIsPast"
},
{
"name"
:
"activity_date_comparison"
,
"label"
:
"Activity Date is ....."
,
"class_name"
:
"CRM_CivirulesConditions_Activity_Date"
},
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment