You are not logged in.
Pages: 1
Is there any way to hide historical menu option from ticket details. Because i dont want the user can able to see all the history of the desired category and also the other changes. If history is there than it should be specific to the desired ticket history not the whole history. Kindly help me in out this.
Thanks
Offline
please help me in this query.
Offline
You can't without changing the source code
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
can you guide me the exact source file so i can change or remove the menu from that file. Thanks
Offline
In source code you can delete part showing Historical tab, but you can't hide only a part of this historical
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
can you please guide me more specifically from the code level that from which file i have to edit to hide historical option in glpi.
Thanks
Offline
Define tabs of the item
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
src/ticket.php
look for the line containing $this->addStandardTab('Log', $ong, $options);
Support GLPI with a donation : opencollective.com/glpi-project
Offline
This isn't necessary. The historical tab doesn't show in the simplified interface. For standard interface profiles, you can remove the "Historical" permission under the Profile's Administration tab.
GLPI Collaborator and Plugin Developer.
My non-English comments are automated translations. Sorry for any confusion that causes.
Mes commentaires non anglais sont des traductions automatiques. Désolé pour toute confusion qui cause.
Mis comentarios que no están en inglés son traducciones automáticas. Perdón por cualquier confusión que cause.
Offline
This isn't necessary. The historical tab doesn't show in the simplified interface. For standard interface profiles, you can remove the "Historical" permission under the Profile's Administration tab.
@cconard96,
In pact, historical tab still show in the simplified interface.
Thanks,
Giang.
Offline
src/ticket.php
look for the line containing $this->addStandardTab('Log', $ong, $options);
If i del this line -> Historical tab will be hidden from both requester and technician's ticket menu tab.
So, how to edit to just hide historical tab from requester's ticket tab (simplified interface)?
Thanks,
Giang.
Last edited by giang (2022-03-01 10:10:00)
Offline
9.5.7 and GLPI 10 both have no historical tab for simplified interface. If you have it, something seems to be wrong in your database.
What result do you get with this query?
SELECT rights FROM GLPI_DB.glpi_profilerights WHERE profiles_id=PROFILES_ID AND name="logs";
Replace "GLPI_DB" with your database name and "PROFILES_ID" with the profile used by your regular users.
It should be "0" while a standard interface with the permission should be "1".
GLPI Collaborator and Plugin Developer.
My non-English comments are automated translations. Sorry for any confusion that causes.
Mes commentaires non anglais sont des traductions automatiques. Désolé pour toute confusion qui cause.
Mis comentarios que no están en inglés son traducciones automáticas. Perdón por cualquier confusión que cause.
Offline
9.5.7 and GLPI 10 both have no historical tab for simplified interface. If you have it, something seems to be wrong in your database.
What result do you get with this query?
SELECT rights FROM GLPI_DB.glpi_profilerights WHERE profiles_id=PROFILES_ID AND name="logs";
Replace "GLPI_DB" with your database name and "PROFILES_ID" with the profile used by your regular users.It should be "0" while a standard interface with the permission should be "1".
My ver. 9.5.5.
However, how to find database name and Profiles_id ?
Thanks,
Giang.
Last edited by giang (2022-03-02 09:21:51)
Offline
i dont want the user can able to see all the history of the desired category and also the other changes.
Offline
i dont want the user can able to see all the history of the desired category and also the other changes.
inc/ticket.class.php
Pls find and delete this line: $this->addStandardTab('Log', $ong, $options);
Thanks,
Giang.
Last edited by giang (2022-03-03 04:36:18)
Offline
Hi, Curtis,
Self-service users do have access to the historical tab. At least in 9.5.7 and 10.rc1.
They miss access to the Logs menu under administration.
Thanks, Giang for pointing out the code. This is a nice feature to have, maybe for our YAGP plugin.
Cheers,
9.5.7 and GLPI 10 both have no historical tab for simplified interface. If you have it, something seems to be wrong in your database.
What result do you get with this query?
SELECT rights FROM GLPI_DB.glpi_profilerights WHERE profiles_id=PROFILES_ID AND name="logs";
Replace "GLPI_DB" with your database name and "PROFILES_ID" with the profile used by your regular users.It should be "0" while a standard interface with the permission should be "1".
Offline
9.5.7 and GLPI 10 both have no historical tab for simplified interface. If you have it, something seems to be wrong in your database.
What result do you get with this query?
SELECT rights FROM GLPI_DB.glpi_profilerights WHERE profiles_id=PROFILES_ID AND name="logs";
Replace "GLPI_DB" with your database name and "PROFILES_ID" with the profile used by your regular users.It should be "0" while a standard interface with the permission should be "1".
I've checked this option and is at 0 for self-service profile, but in user simplified interface it still shows historical tab if it's inside a ticket details, this shows many info that should not be visible to end user.
(Self-Service portal Menu Tickets->Select any type (open/solved/closed)->select the ticket item
New GLPI version 10.0.5 installation
Offline
Hi everyone,
An awfull solution to hide stat and log tickets tabs for end-users only in GLPI 10.
Edit "htdocs\glpi\src\Ticket.php" defineTabs function like this :
public function defineTabs($options = [])
{
$ong = [];
$this->addDefaultFormTab($ong);
/** first update below **/
if (Session::getCurrentInterface() == 'central') {
$this->addStandardTab(__CLASS__, $ong, $options);
}
$this->addStandardTab('TicketValidation', $ong, $options);
$this->addStandardTab('KnowbaseItem_Item', $ong, $options);
$this->addStandardTab('Item_Ticket', $ong, $options);
if ($this->hasImpactTab()) {
$this->addStandardTab('Impact', $ong, $options);
}
$this->addStandardTab('TicketCost', $ong, $options);
$this->addStandardTab('Itil_Project', $ong, $options);
$this->addStandardTab('ProjectTask_Ticket', $ong, $options);
$this->addStandardTab('Problem_Ticket', $ong, $options);
$this->addStandardTab('Change_Ticket', $ong, $options);
if (Session::getCurrentInterface() == 'central') {
$this->addStandardTab(Ticket_Contract::class, $ong, $options);
}
if (
Entity::getAnonymizeConfig($this->getEntityID()) == Entity::ANONYMIZE_DISABLED
|| Session::getCurrentInterface() == 'central'
) {
/** second and last update below **/
if (Session::getCurrentInterface() == 'central') {
$this->addStandardTab('Log', $ong, $options);
}
}
return $ong;
}
Offline
Pages: 1