When I add a field, for example to contextual filters, I do not get an option to add the field only for that display. Only once the field is added, when I get the screen for configuring the field, do I get this option.
The result of this is that once I've added the field, and then overridden it for my current display, I have to go back to the default one and remove the field there. The settings are not copied over, so that's good, but the field is added. I have this on every installation of Views on D7, so it's not module or server related.
Comments
Comment #1
dawehnerCould you try to update to 7.x-dev and see whether this is still broken there?
If yes there are proabably other issues as well, which describe this problem.
Comment #2
Ankabout CreditAttribution: Ankabout commenteddereine, yes it still works that way with the latest dev.
Comment #3
bojanz CreditAttribution: bojanz commentedEverything about overriding needs revisiting :/
Comment #4
dawehner#1176048: Remove button does not respect changing of the override select is probably a duplicate.
Feedback/review for this patch are highly welcomed, as on all patches in general.
It's true the overrides are currenty somehow horrible broken :(
Comment #5
Ankabout CreditAttribution: Ankabout commentedNot exactly a duplicate, but probably the same cause of the problem. Will attempt the patch later and report back in that thread.
Comment #6
Ankabout CreditAttribution: Ankabout commentedIt doesn't look like that patch will make sense for me. It's not only a remove issue. Here are some screenshots of my workflow, taken as follows:
Basically it comes down to the fact that you can override the settings of the field, but you can't override the field itself when you add it.
A workaround is that you first click on "rearrange", click "this display only", then save and then add the field. Screenshots attached.
Comment #7
dawehnerJust tagging to catch them all.
Comment #8
joel_osc CreditAttribution: joel_osc commentedJust ran into this issue when adding a sort field using 7.x-3.x-dev from Oct. 24th. The first sort field you add within a view always gets added to all displays even if you choose override. My situation was like this:
Display 1: sort on field_1
Display 2: sort on field_2
Display 3: no sort
To set this up in views I had to:
1. Add sort on field_1 and select override when saving
- bug now takes affect and adds sort on field_1 to all displays
2. Edit sort on field_1 in Display 2 and set to override and save
3. Remove sort on field_1 from Display 2
4. Add sort on field_2 in Display 2
5. Remove sort on field_1 on Master, which then removes the sort on Display 3
Hope this info helps.
Comment #9
dawehnerBumping this to a release blocker.
Comment #10
filijonka CreditAttribution: filijonka commentedHi
I've been testing this but with the http://drupal.org/node/1176048 patch included and I think that with the handler added in that patch it also corrected this one.
Comment #11
dawehnerIt would be definitive cool if some more people could test whether it's still a problem of 3.x-rc3
Comment #12
Ankabout CreditAttribution: Ankabout commentedNot fixed in RC3 for me, sorry :(
Comment #13
filijonka CreditAttribution: filijonka commentedTried in RC3 and not working so most likely not in dev either. Must been some caching. I do have an idea so hopefully i manage to get an patch done today
Comment #14
filijonka CreditAttribution: filijonka commentedbeen debugging now and this is my conclusion:
When we make the submission it calls views_ui_standard_submit and there we call for the options_override.
In views_plugin_display.inc:
In options_override it calls the funtion set_override with argument section, in this case fields.
set_override do take two arguments, the section and a boolean $new_state with default value null.
So new_state gets a value fetched and will in this case always be true and what happends then for each options in the section is that it will be reverted to the defaults. So that is the error acording to me.
When looking around in the file I found this function: override_option($option,$value) that seems to actually do what we want in this case?
Maybe something like this, semicode
The problem for me is that I don't know what $value is, so therefor I can't really test it and see if this really is somewhat correct or if I'm totally wrong.
and just a thought, pehaps it would be better if we from the submit actually call directly to the options_overide function.
Comment #15
Ankabout CreditAttribution: Ankabout commentedIsn't it simply the case that the workflow is the wrong way round? Right now I think it works like this:
1. You add a field (no override options in the UI)
2. You set the options for the field (here you have override options)
I'm guessing that step 1 already adds the field to all displays, and only once you do step 2, does the settings only apply to one display.
But then again, I'm no coder, so I might be completely wrong, or missing an important reason for this workflow.
Comment #16
tim.plunkettHmm. It would make sense to me if the override dropdown was present on the add field/filter/sort form.
Comment #17
dawehnerThis issue would be definitive helpful for writing an issue summary. Just from reading #8 i assume the problem is the following:
* You can't override directly on the add item form
* Per default items aren't overridden
Is there anything additional which is a problem here? Please help and write a summary.
Comment #18
tim.plunkettComment #19
tim.plunkettTo clarify my last comment, the dropdown in the second image has no effect. But what Ankabout suggests in #15 is adding the dropdown to the first image.
Comment #20
Ankabout CreditAttribution: Ankabout commenteddereine, as far as I know that's it, as tim explains. I think that should solve the whole thing?
Comment #21
dawehnerThere was an issue some time ago which would allow to only store new fields once submit is clicked, this maybe have helped it.
But yeah it's probably right that you have this select available.
Here is a first version which DOES NOT WORK!
Comment #22
dawehnerBased on some problems i had to tackle on #1373174: Add ability to override entire grouping before adding settings i managed to implement this now...
There are some additional screenshots to show how it works.
Comment #23
tim.plunkettThis only works halfway.
If you choose to override before adding the field, it works great.
But if you don't choose to override before configuring, and then try to set it to override, it is still broken.
Comment #24
tim.plunkettI misunderstood what was actually happening underneath, I think this is good to go solves the problem nicely.
Comment #25
dawehnerOne less issue