View ProjeQtOr On SourceForge.net
ProjeQtOr - Project Management Tool
Support us on Capterra
OIN - Open Invention Network
ProjeQtOr free project management software - How to calculate workflow available status for SimpleTicket ? - ProjeQtOr
 
 

How to calculate workflow available status for SimpleTicket ?

More
03 Dec 2013 06:45 #1 by lfrugere
Hi Babynus,

I'm looking for customize SimpleTicket class in order to make status field editable.

On $_fieldsAttributes, I change

"idStatus"=>"required,readonly"

to

"idStatus"=>"required"

and that's work.

But I've an error on status list.
Although SimpleTicket class extends Ticket, list of available status (calculated from workflow) are not correct (all status are displayed).

Questions : How to calculate correctly this list ? On whih class is calculated workflows ?

Thanks in advance,

Lionel.

Please Log in or Create an account to join the conversation.

More
03 Dec 2013 12:54 #2 by babynus
Hi,

It is very complicated as TicketSimple should be taken into account exactly like Ticket. :silly:

In /tool/html.php, add on line after line 93 to get things like this :
} else if ($col=='idStatus') {
      if ($class=='TicketSimple') $class='Ticket';
      $idType='id' . $class . 'Type';
      $typeClass=$class . 'Type';

Very complicated indeed. :P

Regards.
Babynus.

Babynus
Administrator of ProjeQtOr web site

Please Log in or Create an account to join the conversation.

More
05 Dec 2013 11:56 #3 by lfrugere
Thanks Babynus for your answer and sorry for my late reply : that works perfectly.

A last question to solve complety my problem : how to set automaticaly the idle flag when status is "Finished" ?

I looked at updateSqlElement function on SqlElement.php but I didn't find how to fix it.

Can you help me ?

Lionel.

Please Log in or Create an account to join the conversation.

More
05 Dec 2013 13:25 #4 by babynus
You just have to set idle field as visible (for instance as readonly) in TicketSimple.php.

For information, in V4.1 it will be possible to preserve your curtom classes.
You'll just have to paste your custom classes in /model/custom folder.

Babynus
Administrator of ProjeQtOr web site
The following user(s) said Thank You: lfrugere

Please Log in or Create an account to join the conversation.

More
05 Dec 2013 15:27 - 05 Dec 2013 15:32 #5 by lfrugere
Chapeau bas !

Very simple indeed.

As attachment my TicketSimple class. It's my workaround for Ticket #1213.

Thank you again.

Lionel.
Attachments:
Last edit: 05 Dec 2013 15:32 by lfrugere.

Please Log in or Create an account to join the conversation.

Moderators: babynusprotion
Time to create page: 0.035 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.