View ProjeQtOr On SourceForge.net
ProjeQtOr - Project Management Tool
Support us on Capterra
OIN - Open Invention Network
ProjeQtOr free project management software - ticket status multiple updates (batch mode) - ProjeQtOr
 
 

ticket status multiple updates (batch mode)

More
22 Oct 2014 15:19 #1 by bpennec
Hi,

I have a issue when I want to update tickets status to "done" or "closed" in batch mode.
In that case, the closed date or the done date in not set (it is a required fields in interactive mode).

Could you add the current date or a field like it is for due date in the multiple update screen ?

King regards,
Bruno
The topic has been locked.
More
22 Oct 2014 15:51 #2 by babynus
Ticket #1564 recorded.
I'll have a look.

Babynus
Administrator of ProjeQtOr web site
The topic has been locked.
More
23 Oct 2014 01:22 #3 by mamath
Hi,

I have the same problem, and i solve it by changing the "recalculateCheckboxes" function in SqlElement.php
public function recalculateCheckboxes($force=false) {
	// if no status => nothing to do
	if (! property_exists($this, 'idStatus')) {
		return;
	}
	$status=new Status($this->idStatus);
	// if no type => nothong to do
	$fldType = 'id' . get_class($this) . 'Type';
	$typeClass=get_class($this) . 'Type';
	if (! property_exists($this, $fldType)) {
		return;
	}
	$type=new $typeClass($this->$fldType);
	if ( ( (property_exists($type,'lockHandled') and $type->lockHandled) or $force)
	and property_exists($this,'handled')) {
		if ($status->setHandledStatus) {
			$this->handled=1;
			if (property_exists($this,'handledDate') and !$this->handledDate) $this->handledDate=date("Y-m-d");
			if (property_exists($this,'handledDateTime') and !$this->handledDateTime) $this->handledDateTime=date("Y-m-d H:i:s");
		} else {
			$this->handled=0;
		}
	}
	if ( ( (property_exists($type,'lockDone') and $type->lockDone) or $force)
	and property_exists($this,'done') ) {
		if ($status->setDoneStatus) {
			$this->done=1;
			if (property_exists($this,'doneDate') and !$this->doneDate) $this->doneDate=date("Y-m-d");
			if (property_exists($this,'doneDateTime') and !$this->doneDateTime) $this->doneDateTime=date("Y-m-d H:i:s");
		} else {
			$this->done=0;
		}
	}
	if ( ( (property_exists($type,'lockIdle') and $type->lockIdle) or $force)
	and property_exists($this,'idle') ) {
		if (! self::isSaveConfirmed()) {
		// If save confirmed, must not override idle status that is cascaded
			if ($status->setIdleStatus) {
				$this->idle=1;
				if (property_exists($this,'idleDate') and !$this->idleDate) $this->idleDate=date("Y-m-d");
				if (property_exists($this,'idleDateTime') and !$this->idleDateTime) $this->idleDateTime=date("Y-m-d H:i:s");
			} else {
				$this->idle=0;
			}
		}
	}
	if ( ( (property_exists($type,'lockCancelled') and $type->lockCancelled) or $force)
		and property_exists($this,'cancelled') ) {
			$this->cancelled=($status->setCancelledStatus)?1:0;
	}
}

Bye
The following user(s) said Thank You: climb4fun
The topic has been locked.
More
23 Oct 2014 09:58 #4 by bpennec
Hi mamath,

I have applied your patch, and I work now.
Thank you very much for this workaround.

Bye
The topic has been locked.
More
23 Oct 2014 13:26 #5 by babynus
Hi Mamath,

Thanks for this fix.
Will be included in next version !

Babynus
Administrator of ProjeQtOr web site
The topic has been locked.
Moderators: babynusprotion
Time to create page: 0.051 seconds

Cookies settings

×

Functional Cookies

Ce site utilise des cookies pour assurer son bon fonctionnement et ne peuvent pas être désactivés de nos systèmes. Nous ne les utilisons pas à des fins publicitaires. Si ces cookies sont bloqués, certaines parties du site ne pourront pas fonctionner.

Session

Please login to see yours activities!

Other cookies

Ce site web utilise un certain nombre de cookies pour gérer, par exemple, les sessions utilisateurs.