I am using entityreference successfully for various fields and in most cases I am using a view to select the available references. Now, I ran into a problem with the following scenario.
I have a content type "organizations" which has fields for name (title), a link to the website and a select field for relevancy. The latter only has two options: active and obsolete. An organization can be obsolete when it is renamed or closed for any reason.
A second content type describes "projects". There is a field "partner" in that content type which is an entityreference field to organization nodes. A view is used to limit the available organizations to the active ones, only. That's achieved by adding a simple filter to the view (relevancy - is none of - obsolete). This works great as such as I can only select active organizations when adding a new project. However, if (for whatever reason) I need to edit an old project which has an obsolete organization set as partner (and I want to leave it that way since at the time of the project this partner was active), I can't save the node due to the restriction of the view (This reference is invalid.).
Is there a way to use two views (one for selection and one for validation) or set a filter only for adding new references?
Or is there any other way I can achieve that?