Skip to content
Snippets Groups Projects
Commit 560fad1c authored by Prasad's avatar Prasad
Browse files

Merge branch 'fix_quickcreate_sortorder' into 'master'

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

See merge request !36
parents 8ac460a3 52b9591e
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