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 2011-07-27 15:57:48

robbiefpi
Member
From: Italy
Registered: 2010-08-04
Posts: 85

Post only can modify/delete a ticket with Simplified interface ?

Hi all,

I need to enable a user to modify the description o delete a ticket if he's wrong in writing o selecting some value in combo box.

But  I want to remain with Simplified interface and we don't enable Standard interface...

Is there a way to do ?

thanks

Offline

#2 2011-07-27 16:34:20

yllen
GLPI-DEV
From: Sillery (51)
Registered: 2008-01-14
Posts: 15,278

Re: Post only can modify/delete a ticket with Simplified interface ?

Version of GLPI ?


CentOS 6.5 - CentOS 7.x
PHP 5.6 - PHP 7.x - MySQL 5.6  - MariaDB 10.2 + APC + oOPcache
GLPI from 0.72 to dev version
Certifiée ITIL (ITV2F, ITILF, ITILOSA)

Offline

#3 2011-07-28 10:39:56

robbiefpi
Member
From: Italy
Registered: 2010-08-04
Posts: 85

Re: Post only can modify/delete a ticket with Simplified interface ?

Excuse me!! GLPI version 0.78.5

Offline

#4 2011-07-28 16:11:41

yllen
GLPI-DEV
From: Sillery (51)
Registered: 2008-01-14
Posts: 15,278

Re: Post only can modify/delete a ticket with Simplified interface ?

In 0.80, a user, even post-only, can modify his ticket if nobody has begin to work on it


CentOS 6.5 - CentOS 7.x
PHP 5.6 - PHP 7.x - MySQL 5.6  - MariaDB 10.2 + APC + oOPcache
GLPI from 0.72 to dev version
Certifiée ITIL (ITV2F, ITILF, ITILOSA)

Offline

#5 2011-07-28 16:39:55

robbiefpi
Member
From: Italy
Registered: 2010-08-04
Posts: 85

Re: Post only can modify/delete a ticket with Simplified interface ?

and in 0.78.5 no chance to have this?

If not, can you give me some detail where to modify the code?

so I can post my solution for all users that use glpi 0.78.5.

it's impossible to change version of GLPI everytime there is a change in the features....because it's on production...

thanks

Last edited by robbiefpi (2011-08-02 10:06:23)

Offline

#6 2011-08-02 10:25:13

robbiefpi
Member
From: Italy
Registered: 2010-08-04
Posts: 85

Re: Post only can modify/delete a ticket with Simplified interface ?

Please can you give me some detail to adjust this? If I succeed in it, i can share with the community

Offline

#7 2011-08-02 11:14:19

yllen
GLPI-DEV
From: Sillery (51)
Registered: 2008-01-14
Posts: 15,278

Re: Post only can modify/delete a ticket with Simplified interface ?

In CanDeletItem of a ticket, add something like this before return haveRight

if ($this->fields['users_id'] === getLoginUserID())
          && $this->numberOfFollowups() == 0
          && $this->numberOfTasks() == 0
          && $this->fields["date"] == $this->fields["date_mod"]) {
         return true;
      }


CentOS 6.5 - CentOS 7.x
PHP 5.6 - PHP 7.x - MySQL 5.6  - MariaDB 10.2 + APC + oOPcache
GLPI from 0.72 to dev version
Certifiée ITIL (ITV2F, ITILF, ITILOSA)

Offline

#8 2011-10-08 01:42:41

nerfherder
Member
Registered: 2011-10-08
Posts: 2

Re: Post only can modify/delete a ticket with Simplified interface ?

yllen wrote:

In CanDeletItem of a ticket, add something like this before return haveRight crate training puppies puppy aggression puppy whining puppy growling weaning puppies puppy chewing puppy separation anxiety puppy crying
if ($this->fields['users_id'] === getLoginUserID()) how to leash train a puppy why do dogs eat grass j k l m n o p q
          && $this->numberOfFollowups() == 0 why do dogs eat poop puppy toilet training puppy training
          && $this->numberOfTasks() == 0 puppy training tips puppy barking puppy biting house training a puppy
          && $this->fields["date"] == $this->fields["date_mod"]) { how often should i feed my puppy a b c d e f g h i
         return true; r buy marijuana seeds weed seeds for sale buy cannabis seeds cannabis seeds for sale
      } pot seeds for sale northern lights weed

Seems to be doing the trick for me so far, had the same query.. i'l report back if i have any problems, thanks smile

Offline

#9 2011-11-26 12:03:16

storylove
Member
Registered: 2011-11-26
Posts: 3

Re: Post only can modify/delete a ticket with Simplified interface ?

have you understand the problem,nerfherder?

Offline

#10 2011-11-28 10:33:49

yllen
GLPI-DEV
From: Sillery (51)
Registered: 2008-01-14
Posts: 15,278

Re: Post only can modify/delete a ticket with Simplified interface ?

nerfherder : Problem solved, i close


CentOS 6.5 - CentOS 7.x
PHP 5.6 - PHP 7.x - MySQL 5.6  - MariaDB 10.2 + APC + oOPcache
GLPI from 0.72 to dev version
Certifiée ITIL (ITV2F, ITILF, ITILOSA)

Offline

Board footer

Powered by FluxBB