[solved] CustomerID at the time of creating customer user.

Moderator: crythias

Locked
nyotrs
Znuny newbie
Posts: 17
Joined: 14 May 2013, 19:15
Znuny Version: 3.2.6

[solved] CustomerID at the time of creating customer user.

Post by nyotrs »

Hi everyone,

Got a couple more questions as we try to put OTRS into production:

1) by uncommenting the line "CustomerCompanySupport => 1" in /opt/otrs/Kernel/Config/Config.pm, the CustomerID field shows up as a dropdown list at the time of customer user creation. Can we modify this dropdown list to show either the CustomerID or the customer company name (not both like the default)?

2) [viewtopic.php?f=61&p=46557] by modifying the "sub_Overview" section in /opt/otrs/Kernel/Modules/AdminCustomerCompany.pm, we can make "Customer Company Management" page run a default wildcard search, however we seem to lose the ability to search for a particular customer after that. No matter what we type into search box, the result is always the full list of customers. Can we retain both functionalities (displaying the full list and yet allows to search for a specific company)?

3) is it possible to prevent agents from modifying "My Queues" and "Email settings" in preferences (or maybe hide those 2 sections)?

Thanks!
Last edited by nyotrs on 20 May 2013, 19:04, edited 1 time in total.
OTRS 3.2.6
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: CustomerID selection at the time of creating customer us

Post by crythias »

nyotrs wrote:Can we modify this dropdown list to show either the CustomerID or the customer company name (not both like the default)?
Probably possible in the code. It's not (as far as I know) configurable.
nyotrs wrote:Can we retain both functionalities (displaying the full list and yet allows to search for a specific company)?
Probably. Show your changes with respect to this and the answer might be more reasonable.
nyotrs wrote:is it possible to prevent agents from modifying "My Queues" and "Email settings" in preferences (or maybe hide those 2 sections)?
Edit Config Settings in Ticket -> Frontend::Agent::Preferences
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
nyotrs
Znuny newbie
Posts: 17
Joined: 14 May 2013, 19:15
Znuny Version: 3.2.6

Re: CustomerID selection at the time of creating customer us

Post by nyotrs »

Hi Crythias,
crythias wrote:
nyotrs wrote:Can we modify this dropdown list to show either the CustomerID or the customer company name (not both like the default)?
Probably possible in the code. It's not (as far as I know) configurable.
Can you point us to where the code is for this?
crythias wrote:
nyotrs wrote:Can we retain both functionalities (displaying the full list and yet allows to search for a specific company)?
Probably. Show your changes with respect to this and the answer might be more reasonable.
Nevermind about this. We made a mistake, the answer given by user "Joool" in the thread viewtopic.php?f=61&p=46557 worked.
crythias wrote:
nyotrs wrote:is it possible to prevent agents from modifying "My Queues" and "Email settings" in preferences (or maybe hide those 2 sections)?
Edit Config Settings in Ticket -> Frontend::Agent::Preferences
Thanks, this was easy ;-)
OTRS 3.2.6
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: CustomerID selection at the time of creating customer us

Post by crythias »

nyotrs wrote:Can you point us to where the code is for this?
Actually, it is configurable:

Code: Select all

$Self->{CustomerCompany} = {
#other configuration entries not shown here
CustomerCompanyListFields      => [ 'customer_id', 'name' ],
#... rest of entries
};
 
(copy/paste from Defaults.pm to Config.pm and edit.)
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
nyotrs
Znuny newbie
Posts: 17
Joined: 14 May 2013, 19:15
Znuny Version: 3.2.6

Re: CustomerID selection at the time of creating customer us

Post by nyotrs »

Hi Crythias,

Thanks for the quick reply again.
crythias wrote: Actually, it is configurable:

Code: Select all

$Self->{CustomerCompany} = {
#other configuration entries not shown here
CustomerCompanyListFields      => [ 'customer_id', 'name' ],
#... rest of entries
};
 
(copy/paste from Defaults.pm to Config.pm and edit.)
I just tested by changing the CustomerCompanyListFields line, but the result is the same: at the customer user creation screen, the customerID drop down list still shows both customerID and company name.

Code: Select all

    $Self->{CustomerCompany} = {
# code omitted
        CustomerCompanyListFields => [ 'customer_id' ],
# code omitted
Am I doing something wrong?
OTRS 3.2.6
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: CustomerID selection at the time of creating customer us

Post by crythias »

Not that I know...
check out Kernel/System/CustomerCompany.pm,
sub CustomerCompanyList

This may be a cache issue, though.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
nyotrs
Znuny newbie
Posts: 17
Joined: 14 May 2013, 19:15
Znuny Version: 3.2.6

Re: CustomerID selection at the time of creating customer us

Post by nyotrs »

Hi Crythias,

You were right on, it was a cache issue. The drop down list now correctly displays only customerID (which is what we'd like).

Thanks again!
OTRS 3.2.6
Locked