Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
views.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
18 Feb 2016 at 13:52 UTC
Updated:
6 Mar 2016 at 07:24 UTC
Jump to comment: Most recent, Most recent file

Comments
Comment #2
lokapujyaComment #3
lokapujyaThere is probably a much better way to do this...
Comment #5
lokapujyaComment #6
lokapujyaWow, it passed. I don't know if it actually works though.
Comment #7
dawehnerYeah I doubt that putting things into the FormBuilder is the right solution. Is there no way you could use
#skip_validation_errors?Comment #8
lokapujyaI think it's actually as easy as this.
Comment #9
tim.plunkettWe use that in seven other places in ViewEditForm already for that exact reason (Duplicate, delete display, disable, etc)
Can we get some tests?
Comment #10
lokapujyaAdded basic tests.
Comment #12
dawehnerLooks great! Thank you.
Comment #13
swetashahi commentedComment #14
swetashahi commentedI tested the issue using SimplyTest.me with latest patch on chrome browser.
Created two article content and added another content type called Issue type.

In the view added the fields and relationship as per the screenshot
Then after deleting the relationship and saving the view, got an error page saying "The website encountered an issue."
Marking needs work
Comment #15
swetashahi commentedComment #16
lendudeThe steps to reproduce assumed #2204037: Views allows removal of required relationships and gives a fatal error on save was in or that you had applied the patch there. Otherwise you just run into the issue described there.
If you want to reproduce this without that patch, you need to create an invalid display some other way. Added steps to the issue summary to do so.
This can go back to RTBC.
Comment #17
alexpottNice fix and nice test. Committed 886a81e and pushed to 8.0.x and 8.1.x. Thanks!
@swetashahi looks like you're in a good position to review #2204037: Views allows removal of required relationships and gives a fatal error on save