Ticket #5400 (new defect)

Opened 2 months ago

Innecessary database access in multiple modules

Reported by: elmue.gmx Assigned to: developer
Priority: minor Milestone: 5.1.0
Component: vtigercrm Version: 5.0.4
Keywords: Cc:

Description

Hello

Serach all *.PHP files for the string "getComboArray"

You will find a lot results. In approximately 15 files you find this code:

$comboFieldArray = getComboArray($comboFieldNames);

But the variable $comboFieldArray is never used in the file.

This useless function call executes at least one SQL command each time it is called.

So the database load can easily be reduced by deleting all these useless lines from all these archives.

Can anybody with CVS access remove this nonsense stuff ?

Elmü