Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 291693

Editing a view leaves old keys hanging, results in invalid schema

$
0
0

Problem/Motivation

Editing a View's Field's Formatter and exporting the view's configuration does not show the changes to the Formatter.

Steps to Reproduce

From fresh install / db Go to http://localhost/admin/structure/views
Activate the "Archive" view, then Edit it.
Change the "Format" of the "Archive" view to "HTML List" and check the "Force using fields" check box.
Add a Field to the View (one that supports multiple formatters, "Content: Tags" will work.
Export the view config: drush cget views.view.archive > /tmp/test1
Now go back to the view settings and change the formatter of the field in the archive view, re-export and compare.

Proposed resolution

Need a patch.

Remaining tasks

* Nail down steps to reproduce
* Update tests to show failure
* Patch
* Review

User interface changes

None

API changes

None

Data model changes

Should not be needed

Original report by bojanz

dawehner wanted an imperfect bug report :P

Two ways I managed to reproduce this:
1) Changed the formatter of a field. The settings of the previous formatter stayed in the export. Boom, invalid schema.
2) Cloning a view, then editing the menu settings resulted in some old keys persisting.

#1 is worth chasing at least. No clue what's causing it at this point.


Viewing all articles
Browse latest Browse all 291693

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>