Defect #8537

Error in copying projects

Added by Luis Serrano Aranda about 7 years ago. Updated almost 7 years ago.

Status:NewStart date:2011-06-06
Priority:NormalDue date:
Assignee:-% Done:


Target version:-
Resolution: Affected version:


If the copy of a project takes (the project is long) and re-click the copy button, Redmine allows this action and copy two projects with exactly the same characteristics (id and name included).

It would be possible disable the copy button, until the copy is complete or there is a time out ?


Related issues

Related to Redmine - Defect #6579: Tree hierachy being currupted on multiple submissions of ... Closed 2010-10-05


#1 Updated by Luis Serrano Aranda about 7 years ago

Addint a message like Loading... But typing Working...

#2 Updated by Luis Serrano Aranda about 7 years ago

A possible solution is to add this code at the end of prototype.js, disable the button until the task is completed.

var SubmitHelper = {
disableFormsOfPage: function(){
$$('form').each(function(form) {
form.observe('submit', function() {
form.getInputs('submit').each(function(submit) {
if (!submit.readAttribute("no_disabled")){
init: function(){
Event.observe(window, 'load', SubmitHelper.disableFormsOfPage.bindAsEventListener())


#3 Updated by Luis Serrano Aranda about 7 years ago

This a workaround, but not solve the concurrently, the backward...

I think it's better write a flag in the server (to not copy a project concurrently)

#4 Updated by Masamitsu Murase almost 7 years ago

I think that this workaround does not work when an user select "Create and continue" button,
because "continue" parameter is not sent to the server if "Create and continue" is disabled.


  if (!submit.readAttribute("no_disabled")){

should be
  if (!submit.readAttribute("no_disabled")){
    setTimeout(function(){ submit.disable(); }, 0);

Please refer to my plugin.
(This plugin works on only "Issue" page currently...)


Also available in: Atom PDF