When I delete a CCk field from a content type and this field is listed in any of my views the field disappear from the fields list in the view interface but isn't deleted from the query. This cause errors cause the query can't find the field anymore.

Comments

yched’s picture

Title: Error when deleting a CCK field listed in a view » update views when fields are altered / deleted
Category: bug » feature

This is normal behaviour, so it's more a feature request, actually.
I think there is the same kind of issue when a field changes storage type (per field / per content type), that is, when instances are added / removed or when it's 'multiple' setting is changed.

Only in one case (storage type change) we simply have to update the cached query - pretty much already implemented
and in the other (field deletion) we'd have to update the view itself (remove fields / filters / sorts / arguments) - not sure this is doable cleanly.

dodorama’s picture

I know, but the problem is that there's no way of delete the field from the view since it isn't listed anymore.
I had to dig through the database and delete the query manually.
Off topic: why the storage type isn't always per field? Wouldn't it be simpler?

yched’s picture

Status: Active » Closed (duplicate)

Other thread at http://www.drupal.org/node/111975 is more active, actually, so I'm making this one a duplicate...