Labels Bug?
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 73
- Forks
- 79
- Avg merge
- 1d 5h
- Merged PRs (30d)
- 8
Description
https://github.com/joomla/jissues/blob/master/src/App/Tracker/Model/IssueModel.php#L538-L550
With this block of code and the table's store method being called and told to update null values, wouldn't this essentially mean that if something passes a data array to be saved without including the labels key that existing labels would be overwritten? And if that's the case, is this partly responsible for #898 happening?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in src/App/Tracker/Model/IssueModel.php at lines 538-550 and trace the table store call when the labels key is absent from the data array. Reproduce that save path and compare its behavior with issue #898; done means confirming whether existing labels are overwritten and documenting or correcting the identified behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100