znuny / Znuny

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.
https://www.znuny.org
GNU General Public License v3.0
332 stars 82 forks source link

Bug - Conflicting uses of $DBObject in CustomerUser/CustomerCompany detail searches #540

Closed mvorl closed 2 months ago

mvorl commented 4 months ago

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

NiklasSchmitt commented 4 months ago

internal issue 833

NiklasSchmitt commented 2 months ago

fixed within commits https://github.com/znuny/Znuny/commit/0b0bc60f69cbdeb1affd49f127d8c82d0e507ce9 & https://github.com/znuny/Znuny/commit/7d0680c5988422acbe654ef4df6a9a05164c7221.