Closed (fixed)
Project:
Quicktables
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
2 Apr 2009 at 04:47 UTC
Updated:
30 Apr 2009 at 17:00 UTC
This is a problem when you have multiple rows that start with the same letter but you don't want to sort alphabetical. All available weight values are used up (0 to -10) and sorting gets out of whack. The #delta value on the weight FAPI type should be larger... say 50.
Here's a patch against the latest dev release:
--- quicktables.module.orig 2009-04-01 22:33:26.000000000 -0600
+++ quicktables.module 2009-04-01 22:30:47.000000000 -0600
@@ -312,6 +312,7 @@ function quicktables_edit_content_form(&
'#type' => 'weight',
'#default_value' => -$i,
'#attributes' => array('class' => 'row-weight'),
+ '#delta' => 50,
'#prefix' => '
',
);
Comments
Comment #1
sign commentedCommitted, thank you.
We might want to make this more flexible later tho.
Comment #2
dharmatech commentedAgreed. Just a thought, but it probably needs to be dynamic based on the number of rows for that table.