Closed Bug 1155442 Opened 5 years ago Closed 5 years ago

[Desktop Browser Only] pasting into both summary and comment and hitting submit bug will give an error "You must enter a summary for this bug"

Categories

(Firefox OS Graveyard :: Gaia::Bugzilla Lite, defect, P2)

x86
macOS
defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: nhirata, Assigned: daleharvey)

Details

(Whiteboard: [spark])

Attachments

(1 file)

1. go to https://bzlite-staging.herokuapp.com/create/ on the desktop browser
2. copy text
3. paste in the summary and body
4. hit submit bug

Expected: no error
Actual: "You must enter a summary for this bug." ok
Whiteboard: [ignite]
Priority: -- → P2
Assignee: nobody → dale
We defer the write to localstorage just so we arent constantly using io, however we should keep the in memory object up to date
Attachment #8594841 - Flags: review?(drs)
Comment on attachment 8594841 [details] [review]
https://github.com/mozilla-b2g/bzlite/pull/9

You could pass in `bug` as an object to `setTimeout()`, which would be more clear, e.g.

```js
setTimeout(updateBugData, 1000, bug);
```

But I won't hold this patch back for that as it's a pretty trivial improvement. If you choose to do that, feel free to carry r+.
Attachment #8594841 - Flags: review?(drs) → review+
I added the nit, carried review, cheers

Merged: https://github.com/mozilla-b2g/bzlite/commit/36b15b9ad93f575d57dd025866e9c365294e2d38
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Whiteboard: [ignite] → [spark]
You need to log in before you can comment on or make changes to this bug.