View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0001064 | Composr | cns_cpfs | public | 2013-03-01 14:56 | 2020-06-23 16:24 |
Reporter | Robbie Goacher | Assigned To | elubben | ||
Severity | Feature-request | ||||
Status | resolved | Resolution | fixed | ||
Product Version | |||||
Fixed in Version | |||||
Summary | 0001064: Ordering CPFs doesn't bump down current entries | ||||
Description | When 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'. | ||||
Tags | No tags attached. | ||||
Time estimation (hours) | 1.5 | ||||
Sponsorship open | |||||
|
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.) |
|
Implemented the new function 'change_order' in admin_cns_customprofilefields.php to do the sorting. |
Date Modified | Username | Field | Change |
---|---|---|---|
2020-06-23 16:24 | Chris Graham | Fixed in Version | unstable branch => 11 alpha1 |