[SOLVED] My Services -- Missing Services

Moderator: crythias

Locked
subarugeek
Znuny newbie
Posts: 4
Joined: 13 Sep 2013, 18:32
Znuny Version: 4.0.2
Real Name: Dan Saylor

[SOLVED] My Services -- Missing Services

Post by subarugeek »

Ive discovered on my 4.0.2 appliance that if a service is set to invalid, any valid sub-services of that service do not appear in My Services.

Our services are structured like this to force customers to be more specific:

Code: Select all

  SERVICE    | VALIDITY
------------------------
Software	  | Invalid
--Program1	| Valid
	-Module1  | Valid
	-Module2  | Valid
--Program2	| Valid
--Program3	| Valid
Because the root service is set to invalid, none of the sub-services appear in My Services. This is annoying for us, has anyone else had this issue? Is there a workaround to force the sub-services to show up?
Last edited by subarugeek on 12 Dec 2014, 20:57, edited 2 times in total.
subarugeek
Znuny newbie
Posts: 4
Joined: 13 Sep 2013, 18:32
Znuny Version: 4.0.2
Real Name: Dan Saylor

Re: My Services -- Missing Services

Post by subarugeek »

I figured out how to fix this. Here is how you do it if anyone else has this problem:

Edit Kernel::Output::HTML::PreferencesCustomService and change Valid => 1 to Valid => 0. Like this:

Code: Select all

  # get all services
    my %ServiceList = $Kernel::OM->Get('Kernel::System::Service')->ServiceList(
        Valid  => 0,
        UserID => $Self->{UserID},
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: [SOLVED] My Services -- Missing Services

Post by jojo »

if the service is not valid why should OTRS show the subservices?
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
Locked