Skip to content

Issue/442 form js builds invalid task resource when submitting form#450

Merged
hhund merged 3 commits intodevelopfrom
issue/442_form_js_builds_invalid_Task_resource_when_submitting_form
Apr 9, 2026
Merged

Issue/442 form js builds invalid task resource when submitting form#450
hhund merged 3 commits intodevelopfrom
issue/442_form_js_builds_invalid_Task_resource_when_submitting_form

Conversation

@jaboehri
Copy link
Copy Markdown
Collaborator

@jaboehri jaboehri commented Apr 9, 2026

Closes #442 .

@jaboehri jaboehri changed the base branch from main to develop April 9, 2026 18:59
@jaboehri jaboehri requested a review from hhund April 9, 2026 19:38
@hhund hhund marked this pull request as ready for review April 9, 2026 21:13
@hhund hhund added this to the 2.1.0 milestone Apr 9, 2026
@hhund hhund self-assigned this Apr 9, 2026
Copy link
Copy Markdown
Member

@hhund hhund left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jaboehri Thanks for the analysis and the work. I had to add a + "|0" in the modifyTaskInputRow function and code to remove the new |0 postfix in the appendInputRowAfter function. All other changes are cosmetic.

jaboehri and others added 3 commits April 9, 2026 23:33
- ResourceTask.java: introduce 0th index so lastIndexOf() can be used consistently in Form.js to separate ids and indices
- readTaskInputsFromForm(): process task input if their index-less id has the same value as the id generated
- appendInputRowAfter(): only consider inputs to append if their index-less id has the same value as the id given as a parameter. Id is given by the remainder of the string after the last "|" separator

Signed-off / re-signed by committer
- added a new toIdWithoutIndex function to reduce duplicate code
@hhund hhund force-pushed the issue/442_form_js_builds_invalid_Task_resource_when_submitting_form branch from 8e67454 to 7fb05ad Compare April 9, 2026 21:36
@hhund
Copy link
Copy Markdown
Member

hhund commented Apr 9, 2026

I had to rebase and force push to have the first commit also be signed.

@hhund hhund merged commit b953328 into develop Apr 9, 2026
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Form.js builds invalid Task resource when submitting form

2 participants