Hi,

This problem is happening, when I try to import a view with existing name. It only happens when original view wasn't saved into db (i.e. in code). We should always show validation message, if "Replace an existing view if one exists with the same name" isn't ticked.

Looks like https://www.drupal.org/node/421842 overlooked to validate the possibility that default views could get overwritten with a new imported view and that it wasn't intentional.

Comments

alan-ps created an issue. See original summary.

alan-ps’s picture

Status: Active » Needs review
StatusFileSize
new661 bytes

I have also created a patch for review.

chris matthews’s picture

The 3 year old patch in #2 to admin.inc applied cleanly to the latest views 7.x-3.x-dev and if still relevant needs to be reviewed.