Edgewall Software
Modify

Opened 17 years ago

Closed 9 years ago

#6525 closed enhancement (wontfix)

Disable Submit Ticket Button

Reported by: anonymous Owned by:
Priority: low Milestone:
Component: ticket system Version:
Severity: normal Keywords: consider
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

It would be a nice idea to disable the Submit ticket button until the Preview button has been clicked. This is similar to editing wikipedia pages and may prevent to many errors in tickets.

Attachments (0)

Change History (11)

comment:1 by Christian Boos, 17 years ago

Keywords: consider added
Milestone: 0.12

Interesting idea, I wondered what to do about that myself at times.

The pros:

  • as you said, fewer silly mistakes, but see cons. 1
  • you anyway always do a preview, so this just saves you one choice and makes it easier

The cons:

  • well, the most silly errors won't be trapped by a forced preview: not looking for duplicate tickets, not RTFM'ing, creating tickets for support questions that should rather be asked on the mailing list, etc.
  • the actual "errors" on ticket creation can be trapped on Submit as well, by the way of warnings (like when you forget to provide the summary, or any other mistake spotted by a ITicketManipulator plugin)
  • this enforces some process, with one additional forced step

Opinions?

comment:2 by Christian Boos, 17 years ago

Ah yes, forgot to mention that the patch is trivial, in case you want to do it for your Trac:

  • trac/ticket/templates/ticket.html

     
    379379            <input type="hidden" name="cnum" value="${cnum}" />
    380380          </py:if>
    381381          <input type="submit" name="preview" value="Preview" accesskey="r" />&nbsp;
    382           <input type="submit" value="${ticket.exists and 'Submit changes' or 'Create ticket'}" />
     382          <input py:if="preview_mode" type="submit" value="${ticket.exists and 'Submit changes' or 'Create ticket'}" />
    383383
    384384        </div>
    385385

in reply to:  1 comment:3 by Emmanuel Blot, 17 years ago

Replying to cboos:

Opinions?

Maybe through a site-wide configuration option, although as cmlenz and other people have noticed, there are already a bazillion of config options. I've had already implemented something similar for the wiki page edition, to force people to add a comment to their changes, and limit the "save to preview" syndrome.

It can really be useful, so I'm +1 - but fear the config option monster…

comment:4 by Christian Boos, 17 years ago

Well, I think this ticket is more about deciding if it's worth changing the current behavior rather than to introduce a config option (not that I'm generally against choice, but in this case I think a config option is overkill).

in reply to:  4 comment:5 by Emmanuel Blot, 17 years ago

Replying to cboos:

Well, I think this ticket is more about deciding if it's worth changing the current behavior rather than to introduce a config option (not that I'm generally against choice, but in this case I think a config option is overkill).

At least, it should be consistent with other preview/save edition modes in other Trac pages, such as the wiki.

comment:6 by m.galante@…, 16 years ago

Cc: m.galante@… added

This could also prevent some of the problems described in #454.

comment:7 by guto.carlos@…, 12 years ago

Hi,

i wan´t to add another submit button in template for Create and Accept button - when creating a new ticket

Can anyone help me?

comment:8 by m.galante@…, 12 years ago

Cc: m.galante@… removed

comment:9 by thomas.akesson@…, 11 years ago

There is a related issue with the "automatic preview" when writing comments. On slow connections/servers the preview might take a few seconds. Sometimes, when clicking "Submit changes" while the "automatic preview" is being fetched, the click on "Submit changes" is lost (and you find yourself wondering why nothing is happening a while later).

Are other users experiencing this? It could be just specific browsers (I regularly use Opera and FF).

comment:10 by Ryan J Ollos, 9 years ago

Owner: Jonas Borgström removed

comment:11 by Ryan J Ollos, 9 years ago

Milestone: next-major-releases
Resolution: wontfix
Status: newclosed

This can easily be implemented using JavaScript added through site.html (see TracInterfaceCustomization#SiteAppearance). I suspect we would have too many complaints if we changed the behavior now to force a preview. See also th:ForceCommentPlugin.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The ticket will remain with no owner.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from (none) to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.