I've created a custom module and exported my views but the views say "Database overriding code" as soon as they are created. In other words, I export the view, and put it in the module, clear the views cache and it immediately says "Database overriding code". I googled this but the only suggestion that I found was that the view had changed which in this case they haven't nor have any modules been added or uninstalled.

Any idea why this might be happening?

Comments

ssalive’s picture

@alforddm, did you progress with this? I just noticed the same behavior.

ssalive’s picture

I think I found the issue in my case. I had been doing development on this site before exporting the views to a new module. I thought I had deleted all the views in use before enabling my new module, but maybe not. I went back and deleted the view, cleared the views cache, and now it says "in code" as it should. Hope that helps.

alforddm’s picture

Ohhhhhh, No I didn't try that. Thank you for the update. I'll give it a try.

pooja_umale’s picture

You can also do it by selecting "Revert" option from drop-down list next to your view name by going to Home(admin)->Structure->Views on the UI (website).
Hope it works for you.

rogerpfaff’s picture

It helped on my system to revert the view.

DamienMcKenna’s picture

Version: 7.x-3.7 » 7.x-3.x-dev
Component: Code » Documentation
Category: Support request » Task

This is a known issue. Lets turn it into a documentation / UI task.

mfb’s picture

In my testing of a view that's part of a feature, in this case the view reports "database overriding code" and the view can be reverted. But the feature reports "Default" state and it cannot be reverted. This seems a bit confusing.