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
record
workbench4record
Commits
266ebdb2
Unverified
Commit
266ebdb2
authored
Oct 04, 2018
by
Saskia Hiltemann
Browse files
cast row count to integer in filter first/last N rows rule
parent
f6a5cae8
Changes
1
Hide whitespace changes
Inline
Side-by-side
client/galaxy/scripts/mvc/rules/rule-definitions.js
View file @
266ebdb2
...
...
@@ -427,13 +427,13 @@ const RULES = {
component
.
addFilterCountWhich
=
"
first
"
;
component
.
addFilterCountInvert
=
false
;
}
else
{
component
.
addFilterCountN
=
rule
.
count
;
component
.
addFilterCountN
=
parseInt
(
rule
.
count
)
;
component
.
addFilterCountWhich
=
rule
.
which
;
component
.
addFilterCountInvert
=
rule
.
inverse
;
}
},
save
:
(
component
,
rule
)
=>
{
rule
.
count
=
component
.
addFilterCountN
;
rule
.
count
=
parseInt
(
component
.
addFilterCountN
)
;
rule
.
which
=
component
.
addFilterCountWhich
;
rule
.
invert
=
component
.
addFilterCountInvert
;
},
...
...
Write
Preview
Markdown
is supported
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