View Issue Details

IDProjectCategoryView StatusLast Update
0001064Composrcns_cpfspublic2020-06-23 16:24
ReporterRobbie GoacherAssigned Toelubben 
SeverityFeature-request 
Status resolvedResolutionfixed 
Product Version 
Fixed in Version 
Summary0001064: Ordering CPFs doesn't bump down current entries
DescriptionWhen you add a new CPF, or edit the order of an existing one, and there is already a CPF with the same "order" set, the existing CPF's order doesn't get 'bumped down'.

After reordering some fields, I've now got multiple fields with the same 'order'.
TagsNo tags attached.
Time estimation (hours)1.5
Sponsorship open

Activities

Chris Graham

2014-09-05 11:21

administrator   ~0002259

Probably the best solution is, a JavaScript one on the choose-to-edit screen (where we currently support mass-reordering).

On changing an order, starting from the ORIGINAL order of the field just changed, pull everything above it down, UNTIL you get to the new order which is assigned to the field just changed, THEN pull everything equal or above that up.

This should stop there getting awkward gaps.

(One can think of things like up/down arrows or gap-fixing after submitting the form, but people make dozens of CPFs and we have to use pagination, so these would not work well at all.)

amit.nigam

2014-09-17 10:27

reporter   ~0002267

Implemented the new function 'change_order' in admin_cns_customprofilefields.php to do the sorting.

Issue History

Date Modified Username Field Change
2020-06-23 16:24 Chris Graham Fixed in Version unstable branch => 11 alpha1