Znuny/Znuny LTS is a fork of the ((OTRS)) Community Edition, one of the most flexible web-based ticketing systems used for Customer Service, Help Desk, IT Service Management.
In the routines CustomerSearchDetail() in Kernel/System/CustomerUser/DB.pm and CustomerCompanySearchDetail() in Kernel/System/CustomerCompany/DB.pm, a single $DBObject is used to query dynamic fields and the CustomerUser/CustomerCompany databases. This leads to conflicts when using external databases for CustomerUser/CustomerCompany.
The proposed patch (against the dev branch) uses the $DBObject initialized from $Kernel::OM->Get('Kernel::System::DB') for the dynamic field queries, and $Self->{DBObject} for querying the CustomerUser/CustomerCompany databases.
In the routines CustomerSearchDetail() in Kernel/System/CustomerUser/DB.pm and CustomerCompanySearchDetail() in Kernel/System/CustomerCompany/DB.pm, a single $DBObject is used to query dynamic fields and the CustomerUser/CustomerCompany databases. This leads to conflicts when using external databases for CustomerUser/CustomerCompany.
The proposed patch (against the dev branch) uses the $DBObject initialized from $Kernel::OM->Get('Kernel::System::DB') for the dynamic field queries, and $Self->{DBObject} for querying the CustomerUser/CustomerCompany databases.
DBObject.patch