Mail CustomerID blank after update to 5.0.18

Moderator: crythias

Locked
LBorek
Znuny newbie
Posts: 7
Joined: 28 Apr 2017, 17:41
Znuny Version: 6.0.17
Real Name: Lukasz

Mail CustomerID blank after update to 5.0.18

Post by LBorek »

Hi everyone,

Long story short: after update from 5.0.10 to 5.0.18 (keeping settings and DB) , I do not have customerID mapped to e-mail for a person who sends the ticket via mail.
We have 2 rules - one to map user with customer that does work correctly like it was working in 5.0.10
Second one is basic - mapping e-mail address to customerID and this one is not working since update.
I cannot find any issues in logs or configuration both on interface or config.pm
I saw there was a bug with that but on version .14 and it was fixed.
I'm a little bit confused especially it did work before.
Below fragment of the config.pm :

Code: Select all

 # customer unique id
        CustomerKey => 'uid',
        # customer #
        CustomerID => 'XXXOtrsCustomerId',
        CustomerID => 'mail',
        CustomerUserListFields => ['cn', 'mail'],
        CustomerUserSearchFields => ['uid', 'cn', 'mail'],
        CustomerUserSearchPrefix => '',
        CustomerUserSearchSuffix => '*',
        CustomerUserSearchListLimit => 1000,
        CustomerUserPostMasterSearchFields => ['mail'],
        CustomerUserNameFields => ['givenname', 'sn'],
        # show not own tickets in customer panel, CompanyTickets
        CustomerUserExcludePrimaryCustomerID => 0,
        # add an ldap filter for valid users (expert setting)
        CustomerUserValidFilter => '(accountEnabled=TRUE)',
        # administrator can't change customer preferences
        AdminSetPreferences => 0,
        Map => [
            # note: Login, Email and CustomerID are mandatory!
            # var, frontend, storage, shown (1=always,2=lite), required, storage-type, http-link, readonly
            [ 'UserTitle',       'Title',       'title',                  1, 0, 'var', '', 0 ],
            [ 'UserFirstname',   'Firstname',   'givenname',              1, 1, 'var', '', 0 ],
            [ 'UserLastname',    'Lastname',    'sn',                     1, 1, 'var', '', 0 ],
            [ 'UserLogin',       'Username',    'uid',                    1, 1, 'var', '', 0 ],
            [ 'UserEmail',       'Email',       'mail',                   1, 1, 'var', '', 0 ],
            [ 'UserCustomerID',  'CustomerID',  'XXXOtrsCustomerId',     0, 1, 'var', '', 0 ],
            [ 'UserCustomerIDs', 'CustomerIDs', 'XXXOtrsCustomerIdSupp', 1, 0, 'var', '', 0 ],
            [ 'UserPhone',       'Phone',       'telephonenumber',        1, 0, 'var', '', 0 ],
            [ 'UserAddress',     'Address',     'postaladdress',          1, 0, 'var', '', 0 ],
            [ 'UserComment',     'Comment',     'description',            1, 0, 'var', '', 0 ],
        ],
    };
Did anyone else had similar issues?
You do not have the required permissions to view the files attached to this post.
root
Administrator
Posts: 4252
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: Mail CustomerID blank after update to 5.0.18

Post by root »

Search the SysConfig for AutoAssignCustomerIDForUnknownCustomers and read the explanation carefully.
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

Do you need professional services? Check out https://www.znuny.com/

Do you want to contribute or want to know where it goes ?
LBorek
Znuny newbie
Posts: 7
Joined: 28 Apr 2017, 17:41
Znuny Version: 6.0.17
Real Name: Lukasz

Re: Mail CustomerID blank after update to 5.0.18

Post by LBorek »

Thank You a lot!
I have to admit that I've never had to manually enable AutoAssignCustomerIDForUnknownCustomers after the entries in the config so I guess it's quite new...
Works as a charm
Locked