Last modified: 2014-06-20 21:32:39 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T67689, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 65689 - VisualEditor: "Use an existing reference" in the reference dialog button should be disabled once user enters content in the text field and re-enabled upon deleting it
VisualEditor: "Use an existing reference" in the reference dialog button shou...
Status: VERIFIED FIXED
Product: VisualEditor
Classification: Unclassified
Editing Tools (Other open bugs)
unspecified
All All
: High enhancement
: VE-deploy-2014-06-12
Assigned To: Alex Monk
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-05-23 18:06 UTC by Rummana Yasmeen
Modified: 2014-06-20 21:32 UTC (History)
5 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Rummana Yasmeen 2014-05-23 18:06:52 UTC
Steps to reproduce:


1.Open a page with VE
2.Go to Insert>Reference
3.Type something in the text box
4.Click on "Insert Reference"
5.Again re-open that reference
6.Delete the content inside the text field

Observed Result:
issue 1: The "Use an existing reference" button remains enabled when user has entered something in the textbox (step 3), it should be disabled as soon as user enters types something in the field.

issue 2:After clicking on "insert reference" , when user reopens that reference, there is no "Use an existing reference" button in the reference dialog box (step5), the button should appear there but as "Disabled"

Once user deletes the content inside the text field (step 6), the button should again re-anabled.
Comment 1 Roan Kattouw 2014-05-28 18:53:40 UTC
James says it should disable when the surface is not empty and re-enable when empty, and also appear for existing references.
Comment 2 Gerrit Notification Bot 2014-05-30 20:07:22 UTC
Change 136443 had a related patch set uploaded by Alex Monk:
"Use an existing reference" in the reference dialog should be disabled when there is content

https://gerrit.wikimedia.org/r/136443
Comment 3 Gerrit Notification Bot 2014-05-30 22:26:35 UTC
Change 136443 merged by jenkins-bot:
"Use an existing reference" in the reference dialog should be disabled when there is content

https://gerrit.wikimedia.org/r/136443
Comment 4 Rummana Yasmeen 2014-05-31 01:22:09 UTC
The issue 2 stated above in the bug report is still there:

When I reopen an already added reference , there should be "Use an existing reference" button in that dialog but disabled , right now the button is not there at all.

When I will delete the content of that already added reference, it should re-enable that button.
Comment 5 Alex Monk 2014-05-31 18:59:56 UTC
(In reply to ryasmeen from comment #4)
> When I will delete the content of that already added reference, it should
> re-enable that button.

This bit is being dealt with already in Gerrit change #136505
Comment 6 Gerrit Notification Bot 2014-05-31 19:24:06 UTC
Change 136599 had a related patch set uploaded by Alex Monk:
Allow swapping of existing references for others.

https://gerrit.wikimedia.org/r/136599
Comment 7 Gerrit Notification Bot 2014-06-07 00:55:21 UTC
Change 136599 merged by jenkins-bot:
MWReferenceDialog: Allow swapping of existing references for others

https://gerrit.wikimedia.org/r/136599
Comment 8 Rummana Yasmeen 2014-06-09 21:07:01 UTC
Verified the fix in Betalabs
Comment 9 Rummana Yasmeen 2014-06-14 00:18:44 UTC
Verified the fix in test2 running wmf 9
Comment 10 Rummana Yasmeen 2014-06-20 21:32:39 UTC
Verified the fix in production(en.wiki)

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links