Using Selection in Config.pm

Moderator: crythias

Locked
darkness08
Znuny newbie
Posts: 4
Joined: 30 Aug 2016, 08:25
Znuny Version: 5.0.12

Using Selection in Config.pm

Post by darkness08 »

Hey,

I'm using an external CustomerDB. Everything works fine except the gender salutation

The DB provides a Fiel called 'gender' with m or f as value.

Code: Select all

[ 'UserSalutation', 'Anrede',     'gender',     1, 0,'var', '', 0 ],
I tried this

Code: Select all

Selections => {
        UserSalutation => {
            'm' => 'Herr',
            'f' => 'Frau',
        },
    },
But the result of <OTRS_CUSTOMER_DATA_UserSalutation> is m or f.

Where is my fault?
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: Using Selection in Config.pm

Post by reneeb »

The m and f are the values stored in the database. And that's the values that replace the tags. It would need development to change that.
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
darkness08
Znuny newbie
Posts: 4
Joined: 30 Aug 2016, 08:25
Znuny Version: 5.0.12

Re: Using Selection in Config.pm

Post by darkness08 »

oh. Ok.

Thanks
Locked