# \[BUG\] Nasty! ALL Perspective Views or Named Queries deleted when Revert Changes on View in root

**URL:** <https://forum.inductiveautomation.com/t/bug-nasty-all-perspective-views-or-named-queries-deleted-when-revert-changes-on-view-in-root/91317>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [June 4, 2024, 12:40am UTC](https://forum.inductiveautomation.com/t/bug-nasty-all-perspective-views-or-named-queries-deleted-when-revert-changes-on-view-in-root/91317 "2024-06-04T00:40:56Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [June 4, 2024, 12:40am UTC](https://forum.inductiveautomation.com/t/bug-nasty-all-perspective-views-or-named-queries-deleted-when-revert-changes-on-view-in-root/91317/1 "2024-06-04T00:40:56Z")

</div>

v8.1.31

This one's nasty! I've just logged it with support.

I only just opened the project, then:

- opened a View _ **in the root Views folder** _ (important, doesn't affect Views in folders) to edit it
- closed it without editing it, but same consequence if you do edit it
- right clicked on the View and selected "Revert Changes"
- then every View in the project was _ **deleted** _ (inherited Views remain but any overrides from the current project are removed). If I saved the project at this point, which the customer did unknowingly a few days ago, it would have cemented the deletions in the gateway and I would have to revert to a backup of the gateway (which I did the other day).

This also affected Named Queries, although with a quirk. Repeating the steps for named queries within folder deletes the entire folder. Views within folder are unaffected. Reverting Named Queries in the root deletes all named queries as it does with Views in the root.

This does _not_ affect script libraries.

Is there anything that I can collect in terms of logs?

Edit:  
Selecting Close and Revert on an open edited View behaves as expected.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [June 4, 2024, 1:20am UTC](https://forum.inductiveautomation.com/t/bug-nasty-all-perspective-views-or-named-queries-deleted-when-revert-changes-on-view-in-root/91317/2 "2024-06-04T01:20:56Z")

</div>

I'm about 90% confident this is fixed in a later version.

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [June 4, 2024, 1:24am UTC](https://forum.inductiveautomation.com/t/bug-nasty-all-perspective-views-or-named-queries-deleted-when-revert-changes-on-view-in-root/91317/3 "2024-06-04T01:24:32Z")

</div>

A colleague can't reproduce it in 8.1.41, I'm seeing if he can test in 31.

---

<div class="post-metadata">

**Author:** ![andrew.budaiev](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/andrew.budaiev/32/72921_2.png) [@andrew.budaiev](https://forum.inductiveautomation.com/u/andrew.budaiev)\
**Post date:** [June 4, 2024, 1:47am UTC](https://forum.inductiveautomation.com/t/bug-nasty-all-perspective-views-or-named-queries-deleted-when-revert-changes-on-view-in-root/91317/4 "2024-06-04T01:47:18Z")

</div>

**IGN-7965: Designer: New/overridden inherited project resources get discarded after selecting “Revert Changes” on a project resource.**  
Fixed the behavior of the 'Discard Changes' option on overridden resources to walk up parent folders and discard them as well if they held only the resource that is being discarded.

> [@Nightly 8.1 Changelogs - 2023](https://forum.inductiveautomation.com/t/nightly-8-1-changelogs-2023/68524/148):
>
> Nightly Changelog: 8.1.34-SNAPSHOT-b20231009 Swing Vision IGN-7418: Organize drop target popup menu into folders by template path The dropped template menu in Vision now automatically intelligently builds nested menus for all possible template options, making large projects with many templates easier to manage. Designer IGN-8022: Renaming option not available for Vision folder immediately after creating folder within Vision workspace in designer Fixed an issue where Vision window and templat…

This looks related

---

<div class="post-metadata">

**Author:** ![Brandon\_Peterson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/brandon_peterson/32/32960_2.png) [@Brandon\_Peterson](https://forum.inductiveautomation.com/u/Brandon_Peterson)\
**Post date:** [June 5, 2024, 5:21pm UTC](https://forum.inductiveautomation.com/t/bug-nasty-all-perspective-views-or-named-queries-deleted-when-revert-changes-on-view-in-root/91317/5 "2024-06-05T17:21:44Z")

</div>

If this is, in fact, the fix to this bug, do we know what version it was introduced in? It's probably best to assume it exists in all 8.1 versions before 8.1.34, but it would be helpful to know if some earlier versions are safe from this bug or not.

---

<div class="post-metadata">

**Author:** ![Bushmatic](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bushmatic/32/87014_2.png) [@Bushmatic](https://forum.inductiveautomation.com/u/Bushmatic)\
**Post date:** [June 5, 2024, 5:35pm UTC](https://forum.inductiveautomation.com/t/bug-nasty-all-perspective-views-or-named-queries-deleted-when-revert-changes-on-view-in-root/91317/6 "2024-06-05T17:35:33Z")

</div>

Just tried in 8.1.32 and did not experience the bug.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [June 5, 2024, 5:50pm UTC](https://forum.inductiveautomation.com/t/bug-nasty-all-perspective-views-or-named-queries-deleted-when-revert-changes-on-view-in-root/91317/7 "2024-06-05T17:50:36Z")

</div>

Affected versions are 8.1.28 -\> 8.1.34, per our internal reporting. The bug was actually a regression from a relatively minor cosmetic fix in the project browser 🤦‍♂️.
