The recent addition of 'type' information in the layer table didn't also add a proper header for the new column.
The attached patch adds it.

CommentFileSizeAuthor
#8 LayersTypeHeader2.patch373 bytesstrk
LayersTypeHeader.patch455 bytesstrk
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

tmcw’s picture

Looks like you're behind head; can you try updating? The current code will add a header - this patch adds the type header right under where it already adds a header.

strk’s picture

I'm up-to-date on the DRUPAL-6--2, should I track HEAD instead ?

strk’s picture

My patch is against r1.1.2.34

tmcw’s picture

It's all being tracked in DRUPAL-6--2, but isn't the logic on line 382 specifying a type header for object lists that are layers? Try reverting your patch and clearing caches? This is working on my side, and this patch will add headers for styles, not layers or presets.

strk’s picture

Doh, you're right, it's the wrong block.
Still, reverting my patch drops the Type from the Layers tab too
so must be something with line 686 failing

if ($type == 'layers') {

I think I did drop drupal cache (if 'drush cc' is enough for that).
I surely did drop the browser one.

strk’s picture

Actually, the block is entered correctly. Maybe I'm looking at the wrong file ?
The problem is on the screen shown with path 'admin/build/openlayers/layers'

tmcw’s picture

Ah, the problem is that it should be an elseif, not an if in the switch. Here's to late-night tired programming.

strk’s picture

FileSize
373 bytes

Confirmed. Patch (for what is worth) added.

tmcw’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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