Hi guys,

maybe someone has similar problem: Last weekend I’ve performed minor upgrade from OTRS 5.0.10 to 5.0.18 . 
As it’s minor update I didn’t expect any issues and on first sight it looked flawless. 
Then, after mails start to come, I’ve noticed that for all customers that are not listed in customers section, I do not receive CustomerID (it’s blank). 
Usually it was showing the e-mail address of a person who sent an e-mail. 
The configuration of Config.pm is the same as in 5.0.10: 

 # 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 ],
        ],

Am I missing something or is a bug? 
I will be glad for any tips,
GR,
Lukasz