Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
479487ca
Commit
479487ca
authored
Mar 23, 2022
by
Florie Guibert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix create issue in board with weight
Changelog: fixed EE: true
parent
ab63d511
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
2 deletions
+4
-2
app/assets/javascripts/boards/boards_util.js
app/assets/javascripts/boards/boards_util.js
+2
-1
ee/app/assets/javascripts/boards/components/weight_select.vue
...pp/assets/javascripts/boards/components/weight_select.vue
+1
-1
spec/frontend/boards/boards_util_spec.js
spec/frontend/boards/boards_util_spec.js
+1
-0
No files found.
app/assets/javascripts/boards/boards_util.js
View file @
479487ca
...
...
@@ -111,7 +111,7 @@ export function fullLabelId(label) {
export
function
formatIssueInput
(
issueInput
,
boardConfig
)
{
const
{
labelIds
=
[],
assigneeIds
=
[]
}
=
issueInput
;
const
{
labels
,
assigneeId
,
milestoneId
}
=
boardConfig
;
const
{
labels
,
assigneeId
,
milestoneId
,
weight
}
=
boardConfig
;
return
{
...
issueInput
,
...
...
@@ -121,6 +121,7 @@ export function formatIssueInput(issueInput, boardConfig) {
:
issueInput
?.
milestoneId
,
labelIds
:
[...
labelIds
,
...(
labels
?.
map
((
l
)
=>
fullLabelId
(
l
))
||
[])],
assigneeIds
:
[...
assigneeIds
,
...(
assigneeId
?
[
fullUserId
(
assigneeId
)]
:
[])],
weight
,
};
}
...
...
ee/app/assets/javascripts/boards/components/weight_select.vue
View file @
479487ca
...
...
@@ -63,7 +63,7 @@ export default {
}
else
if
(
weight
===
NO_WEIGHT
)
{
return
-
2
;
}
return
-
1
;
return
null
;
},
toggleEdit
()
{
if
(
this
.
dropdownHidden
)
{
...
...
spec/frontend/boards/boards_util_spec.js
View file @
479487ca
...
...
@@ -27,6 +27,7 @@ describe('formatIssueInput', () => {
labelIds
:
[
'
gid://gitlab/GroupLabel/5
'
,
'
gid://gitlab/GroupLabel/44
'
],
assigneeIds
:
[
'
gid://gitlab/User/55
'
],
milestoneId
:
'
gid://gitlab/Milestone/66
'
,
weight
:
1
,
});
});
});
...
...
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