Edgewall Software

Opened 13 years ago

Last modified 10 years ago

#10281 closed enhancement

Attach file button label consistency — at Version 7

Reported by: Thijs Triemstra Owned by: Ryan J Ollos
Priority: normal Milestone: 1.0.2
Component: attachment Version: 0.12-stable
Severity: normal Keywords: bitesized
Cc: Branch:
Release Notes:

TThe attach file button reads Attach file when no attachments exist for the resource, and Attach another file when attachments exist for the resource.

API Changes:
Internal Changes:

Description

On a ticket page the label for the file attach button always reads 'Attach file'. On the attachments page that label always reads 'Attach another file'.

The issue with the 'Attach another file' label is the fact it's always showing, even when there are no attachments, although the label suggests a file was previously attached. A solution would be using the label 'Attach file' when there are 0 attachments, and 'Attach another file' when there are one or more attachments already.

This could also apply to the label on the ticket page.

Change History (7)

comment:1 by Remy Blank, 13 years ago

Keywords: bitesized added
Milestone: next-minor-0.12.x

comment:2 by Christian Boos, 12 years ago

Milestone: next-minor-0.12.xnext-dev-1.1.x

comment:3 by Ryan J Ollos <ryan.j.ollos@…>, 11 years ago

I've implemented this behavior in 0e037825, such that every add attachment button reads Attach file in the case of no existing attachments, and Attach another file in the case of existing attachments. The implementation includes functional tests, extends test coverage to exercise milestone attachments and splits out part of TestTickets and TestWiki test cases, as recommended in the Todo.

In 7853b262, some refactoring of the tester class was done. In 63dd4df7, the submitted value was renamed to remove the now unnecessary whitespace.

My first attempt at the implementation can be seen in 4e11ff91, but I think the second attempt, described above, is better.

comment:4 by Ryan J Ollos <ryan.j.ollos@…>, 11 years ago

Cc: ryan.j.ollos@… added

comment:5 by Ryan J Ollos, 11 years ago

Owner: set to Ryan J Ollos
Status: newassigned

comment:6 by Ryan J Ollos, 10 years ago

Milestone: next-dev-1.1.x1.1.3

comment:7 by Ryan J Ollos, 10 years ago

Cc: ryan.j.ollos@… removed
Milestone: 1.1.31.0.3
Release Notes: modified (diff)

Proposed changes can be found in log:rjollos.git:t10251. I may retarget this to 1.0.2 if the changes are ready to be committed in time for the release.

Last edited 10 years ago by Ryan J Ollos (previous) (diff)
Note: See TracTickets for help on using tickets.