Skip to content
Snippets Groups Projects
Commit 52b9591e authored by Alan Bell's avatar Alan Bell
Browse files

fixes quickcreate field ordering and anything else that needs all the fields...

fixes quickcreate field ordering and anything else that needs all the fields for the module in the order they appear on the screen in blocks ref #115
parent e46fa610
No related branches found
No related tags found
No related merge requests found
......@@ -236,7 +236,7 @@ class Vtiger_Field extends Vtiger_FieldBasic {
global $adb;
$instances = false;
$query = "SELECT * FROM vtiger_field WHERE tabid=? ORDER BY sequence";
$query = "SELECT * FROM vtiger_field left join vtiger_blocks on vtiger_field.block=vtiger_blocks.blockid WHERE vtiger_field.tabid=? ORDER BY vtiger_blocks.sequence,vtiger_field.sequence";
$queryParams = Array($moduleInstance->id);
$result = $adb->pquery($query, $queryParams);
......@@ -259,4 +259,4 @@ class Vtiger_Field extends Vtiger_FieldBasic {
self::log("Deleting fields of the module ... DONE");
}
}
?>
\ No newline at end of file
?>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment