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
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ayduns
civirules
Commits
38398d56
Commit
38398d56
authored
9 years ago
by
jaapjansma
Browse files
Options
Downloads
Patches
Plain Diff
added multi value comparisons
parent
bbb5e0f2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CRM/CivirulesConditions/Form/FieldValueComparison.php
+0
-30
0 additions, 30 deletions
CRM/CivirulesConditions/Form/FieldValueComparison.php
with
0 additions
and
30 deletions
CRM/CivirulesConditions/Form/FieldValueComparison.php
+
0
−
30
View file @
38398d56
...
...
@@ -54,13 +54,6 @@ class CRM_CivirulesConditions_Form_FieldValueComparison extends CRM_CivirulesCon
$this
->
add
(
'select'
,
'entity'
,
ts
(
'Entity'
),
$this
->
getEntities
(),
true
);
$this
->
add
(
'select'
,
'field'
,
ts
(
'Field'
),
$this
->
getFields
(),
true
);
/*$this->add('select', 'operator', ts('Operator'), $this->conditionClass->getOperators(), true);
$this->add('text', 'value', ts('Compare value'));
$this->add('textarea', 'multi_value', ts('Compare values'));
$this->addButtons(array(
array('type' => 'next', 'name' => ts('Save'), 'isDefault' => TRUE,),
array('type' => 'cancel', 'name' => ts('Cancel'))));*/
}
/**
...
...
@@ -85,29 +78,6 @@ class CRM_CivirulesConditions_Form_FieldValueComparison extends CRM_CivirulesCon
return
true
;
}
/*public static function validateOperatorAndComparisonValue($fields) {
$operator = $fields['operator'];
switch ($operator) {
case '=':
case '!=':
case '>':
case '>=':
case '<':
case '<=':
if (empty($fields['value'])) {
return array('value' => ts('Compare value is required'));
}
break;
case 'is one of':
case 'is not one of':
if (empty($fields['multi_value'])) {
return array('multi_value' => 'Compare values is a required field');
}
break;
}
return true;
}*/
/**
* Overridden parent method to set default values
*
...
...
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