Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
eca-3354460
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
eca-3354460
Commits
ef3a37b4
Commit
ef3a37b4
authored
2 years ago
by
Jürgen Haas
Browse files
Options
Downloads
Patches
Plain Diff
Fix field value comparisons
parent
69ab6b90
No related branches found
Tags
previous/3269827-add-simple-importexport/2022-03-17
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Plugin/ECA/Condition/StringComparisonBase.php
+7
-7
7 additions, 7 deletions
src/Plugin/ECA/Condition/StringComparisonBase.php
with
7 additions
and
7 deletions
src/Plugin/ECA/Condition/StringComparisonBase.php
+
7
−
7
View file @
ef3a37b4
...
...
@@ -128,31 +128,31 @@ abstract class StringComparisonBase extends ConditionBase implements OptionsInte
break
;
case
static
::
COMPARE_BEGINS_WITH
:
$result
=
mb_strpos
(
$value
1
,
$value
2
)
===
0
;
$result
=
mb_strpos
(
$value
2
,
$value
1
)
===
0
;
break
;
case
static
::
COMPARE_ENDS_WITH
:
$result
=
mb_strpos
(
$value
1
,
$value
2
)
===
(
mb_strlen
(
$value
1
)
-
mb_strlen
(
$value
2
));
$result
=
mb_strpos
(
$value
2
,
$value
1
)
===
(
mb_strlen
(
$value
2
)
-
mb_strlen
(
$value
1
));
break
;
case
static
::
COMPARE_CONTAINS
:
$result
=
mb_strpos
(
$value
1
,
$value
2
)
!==
FALSE
;
$result
=
mb_strpos
(
$value
2
,
$value
1
)
!==
FALSE
;
break
;
case
static
::
COMPARE_GREATERTHAN
:
$result
=
$value
1
>
$value
2
;
$result
=
$value
2
>
$value
1
;
break
;
case
static
::
COMPARE_LESSTHAN
:
$result
=
$value
1
<
$value
2
;
$result
=
$value
2
<
$value
1
;
break
;
case
static
::
COMPARE_ATMOST
:
$result
=
$value
1
<=
$value
2
;
$result
=
$value
2
<=
$value
1
;
break
;
case
static
::
COMPARE_ATLEAST
:
$result
=
$value
1
>=
$value
2
;
$result
=
$value
2
>=
$value
1
;
break
;
}
...
...
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