You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2013-04-11 13:50:32

alishchytovych
Member
Registered: 2011-10-25
Posts: 5

Not approved, but solved - how to fix?

Hi

I'm using 83.8 + webservices + behaviours.

My workflow should be the following - new ticket -> auto assignment based on category + rule (if category under ... -> send approval request) - > wait for approval -> solve -> close

At the moment, I can solve (and close) ticket while it's waiting for approval. How to fix it?

Offline

#2 2013-04-11 14:11:28

remi
GLPI-DEV
From: Champagne
Registered: 2007-04-28
Posts: 7,127
Website

Re: Not approved, but solved - how to fix?

This is the default (expected) behavior.

Exemple
Incident : broken printer
Request for approval to buy a new one (need budget)
Solved by redirect print job to another near printer (workaround)


Dév. Fedora 29 - PHP 5.6/7.0/7.1/7.2/7.3/7.4 - MariaDB 10.3 - GLPI master
Certifié ITILv3 - RPM pour Fedora, RHEL et CentOS sur https://blog.remirepo.net/

Offline

#3 2013-04-11 14:57:55

alishchytovych
Member
Registered: 2011-10-25
Posts: 5

Re: Not approved, but solved - how to fix?

To whom it may concern - quick fix by modification of ticket.class.php:

   function canSolve() {
      /// TODO block solution edition on closed status ?
      return ((Session::haveRight("update_ticket","1")
               || $this->isUser(parent::ASSIGN, Session::getLoginUserID())
               || (isset($_SESSION["glpigroups"])
                   && $this->haveAGroup(parent::ASSIGN, $_SESSION["glpigroups"])))
              && self::isAllowedStatus($this->fields['status'], 'solved') && ($this->fields["global_validation"]=='accepted' || $this->fields["global_validation"]=='none'));
   }

Last edited by alishchytovych (2013-04-23 11:55:47)

Offline

Board footer

Powered by FluxBB