The title says it all.
CSS row classes are rendered fine in 7.x.3.1 and they are gone in 7.x.3.2. and the current 7.x.3.x-dev, ceteris paribus.
I checked it multiple times in different apps, including a fresh install (drush core-quick-drupal, with only views and devel_generate, and dependencies).
This is my first bug report here, so I don't know if this is major or not, but it breaks most of my sites; at minimum I use it to implement CSS grid systems, I imagine I'm not alone.
I don't have time to research this further atm, as in do a proper diff, but I'm hoping someone has an eureka moment.
Regards,
Rutger
Comments
Comment #1
dawehnerI really don't see how this can happen, maybe you could try to show us an export of your view.
Comment #2
rdeknijf CreditAttribution: rdeknijf commentedI will, later, gotta run, but for now: it's not occurring in a single view. It happens with all views (block and pages tested), in any drupal installation. Even in a new one. As soon as I drop in 7.x.3.1 it's working again.
I haven't tested it in a different environment though. I'll do that later.
Comment #3
rabihs CreditAttribution: rabihs commentedI'm facing the same problem, since the update, views row classes aren't taken into consideration.
Any idea on what to do?
Thx
Comment #4
Pasqualleyes, I can confirm this too. multiple classes are concatenated with hyphens..
with 3.1:
views-row clearfix main-contact
with 3.2:
views-row clearfix-main-contact
Comment #5
Pasquallethe problem is with views_plugin_style.inc get_row_class()
my case: row class:
clearfix[tl_main_contact]
current
problem: the explode() does not create 2 class values, the tokenize_value() must be called first to have a space between the classes..
Comment #6
Pasquallethe issue which introduced this bug #1360186: Row class set using token should not include spaces
Comment #7
Pasquallethat issue added many many hyphens, where people used to have spaces.
Comment #8
dawehner@Pasqualle
What should i say, you are awesome! Just reverted this patch
Comment #9
davidwhthomas CreditAttribution: davidwhthomas commentedForgive me if I'm wrong but isn't a translation of
to
clearfix-main-contact
correct behaviour?
Perhaps Pasqualle needed to try
clearfix [tl_main_contact]
(note the space between the multiple row classes)
instead?
Sorry to hear you had issues with the patch.
DT
P.S If others are having a similar issue, please post the row class textfield content you are using in the view.
Comment #10
rdeknijf CreditAttribution: rdeknijf commentedI see that the problem has already been detected, but since I promised:
Here's an export:
And as expected, it happens quite the same on a LAMP install with different versions of everything.
Comment #11
Pasqualleyes, I can fix my views as described in #9. I used that form only because I did not want an extra space at the end when [tl_main_contact] is empty.
but generally substituting a token with a css class is not always the desired behavior. Adding an extra hyphen where there wasn't a hyphen before (and lower casing the string) may easily break the current css style.
I do not see why the above export has problems as it does not use tokens (or any other plugin which could have problems with the row class change).
@rdeknijf can you describe what is your actual row class with views 7.x-3.2 for this view?
Comment #12
SophieG CreditAttribution: SophieG commentedHi, is there a solution ? Is installing the dev version the solution ?
Comment #13
grozozo CreditAttribution: grozozo commentedI confirm this issue, the row class of my views are all gones since the update to 7.3.2
Comment #14
rdeknijf CreditAttribution: rdeknijf commentedI see that it's been fixed for now (through a revert of #1360186: Row class set using token should not include spaces) in 7.x.3.3. Thx Daniel!
David, good luck fixing your patch!