Closed (outdated)
Project:
Chaos Tool Suite (ctools)
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
15 Dec 2016 at 18:31 UTC
Updated:
20 Jul 2026 at 19:03 UTC
Jump to comment: Most recent
Comments
Comment #2
jastraat commentedComment #3
jastraat commentedComment #4
rivimeyWhen you say 'set the weight lower than the default' can you explain precisely what you do and with how many variants? It seems possible that the new weight value is outside the acceptable range (defined by $delta in the other issue's patch).
The way it's supposed to work is that #weight values are within the range -delta to +delta. I seem to recall that setting a weight to a value outside this range causes strange effects on display. Previously, $delta was set to 30, allowing for 61 possible weights, but the linked patch changed that to be dynamically calculated based on the number of actual page variants.
The only mitigation I can think of would be to do
$delta = max(30, count($page->handler_info)/2 + 1), enforcing a lower limit on the range, but that feels wrong to me at present.Comment #5
jastraat commented> When you say 'set the weight lower than the default' can you explain precisely what you do and with how many variants?
We usually only have around 10 variants in a given site, and all the weights are well within the old range of +/-30. However, with the new code, it changed the weights to a very low numbered range (like 3) and then added decimal places to divide the variants to the required number.
Comment #6
japerryDrupal 7 is no longer supported, closing.