I'm currently working on a project which has a total number of paragraph bundles greater than 20 (23 I believe) and the client wants them to be in alphabetical order when selecting them. Due to the number exceeding the total possible number of available positions (-10 to +10) when setting this in features the revert is not setting them alphabetically / in the order set. I propose increasing the delta so other people don't have this situation.

Comments

vaccinemedia’s picture

StatusFileSize
new506 bytes

Here is a quick and simple patch which simply increases the delta from 10 to 20. I'd be surprised if a site has a use case whereby they need more than 40 bundles to be sorted alphabetically and deployed using features! But you never know ;)

jeroen.b’s picture

Maybe we can make the delta dynamic? (amount of bundles * 2)?

vaccinemedia’s picture

StatusFileSize
new791 bytes

Good thinking. Here's another patch which counts the number, multiplies by two and uses this for the delta. - edit just noticed the issue with the comment numbers on the filenames. My bad ;)

  • jeroen.b committed e6cd673 on 7.x-1.x authored by vaccinemedia
    Issue #2535074 by vaccinemedia: Increase the number of weights (delta)...
jeroen.b’s picture

Status: Active » Fixed

Thanks, committed to dev!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.