Closed (fixed)
Project:
Facet API
Version:
7.x-1.0-rc3
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
23 Feb 2012 at 14:34 UTC
Updated:
9 Mar 2012 at 22:50 UTC
Jump to comment: Most recent file
Comments
Comment #1
tecjam commentedI rolled back to 7.x-1.0-rc2 and the previous settings I had were loaded and the factes were once again displayed in the correct order.
So it seems that the values were still in the database, but they aren't loaded into the edit form / the edit form doesn't submit the values and the facets aren't ordered according to the settings in the database.
Comment #2
cpliakas commentedThanks for posting. I am suspecting that this is a regression introduced by #1451110: Cache facet settings at the adapter level. I will investigate and post back.
Thanks,
Chris
Comment #3
cpliakas commentedThe bug is definitely confirmed, but it looks like it is limited to the sort form which is confusing to me. I can't seem to track down what caused the issue, although reverting to rc2 does seem to fix it. I will continue to hack away at this, although it would be great to get some help.
~Chris
Comment #4
cpliakas commentedI can confirm that this regression was introduced im commit 5f9ffe1.
Comment #5
cpliakas commentedGetting more specific, looks like the problem happens starting on line 583 in plugins/facetapi/adapter.inc. Seems like the logic changed so the defaults are applied even if settings already exist.
Comment #6
cpliakas commentedI understand what is gong on. The change in logic didn't account for that block of code applying the defaults, so the defaults are being applied whether the settings have been saved or not. The attached patch only applies the defaults if the settings have not yet been saved to avoid overriding what was configured by the site administrator.
Comment #7
cpliakas commentedThis effects dependency plugins as well. Revised patch adds that fix.
Comment #8
cpliakas commentedSince this is a crit, marking as fixed and rolling out a hotfix rc4 release.
Committed to all active branches of Facet API