Closed Bug 275613 Opened 20 years ago Closed 18 years ago

pressing [enter] in a textarea in editflagtypes.cgi results in an addition to the inclusion list instead of saving changes

Categories

(Bugzilla :: Administration, task)

2.19.1
task
Not set
minor

Tracking

()

RESOLVED FIXED
Bugzilla 2.22

People

(Reporter: timeless, Assigned: LpSolit)

Details

Attachments

(1 file)

useragent: safari

steps:
1. load edit: ... flags
2. click some flag to edit
3. change some single line text thing
4. press enter, since you're done and want to save it.

expect:
flag changes are saved

actual results (safari only):
you get the page for creating a new flag based on an old flag.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Hardware: Macintosh → All
(In reply to comment #0)
> actual results (safari only):
> you get the page for creating a new flag based on an old flag.

Actually, it doesn't create a new flag, it only adds a new entry in the inclusion list. If you click "Save Changes" after that, the flag type you were editing is updated. The reason is probably that the "Include" button is the first one in the form and so is the one which gets called when pressing "Enter".

There is probably a way to define the default button when pressing enter.
QA Contact: mattyt-bugzilla → default-qa
Attached patch patch, v1Splinter Review
Assignee: myk → LpSolit
Status: NEW → ASSIGNED
Attachment #233980 - Flags: review?(timeless)
Target Milestone: --- → Bugzilla 2.22
Attachment #233980 - Flags: review?(timeless) → review+
Requesting approval for 2.22 too. The reason is that the current behavior is confusing enough to worth being fixed on this branch.
Flags: approval?
Flags: approval2.22?
Flags: approval?
Flags: approval2.22?
Flags: approval2.22+
Flags: approval+
tip:

Checking in template/en/default/admin/flag-type/edit.html.tmpl;
/cvsroot/mozilla/webtools/bugzilla/template/en/default/admin/flag-type/edit.html.tmpl,v  <--  edit.html.tmpl
new revision: 1.20; previous revision: 1.19
done

2.22:

Checking in template/en/default/admin/flag-type/edit.html.tmpl;
/cvsroot/mozilla/webtools/bugzilla/template/en/default/admin/flag-type/edit.html.tmpl,v  <--  edit.html.tmpl
new revision: 1.14.2.1; previous revision: 1.14
done
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Summary: pressing [enter] in a textarea in editflagtypes results in a copy flag page instead of saving changes → pressing [enter] in a textarea in editflagtypes.cgi results in an addition to the inclusion list instead of saving changes
Component: Attachments & Requests → Administration
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: