Attached patch fixes a couple bugs.
The views UI uses Database, but doesn't "use" it. This bug isn't ever found because we're checking for an instance of views_plugin_query_default, which is no longer the right class name. Both of these result in the query args not being replaced in the preview.
| Comment | File | Size | Author |
|---|---|---|---|
| #11 | vdc-1820332-11.patch | 2.67 KB | tim.plunkett |
| #11 | interdiff.txt | 949 bytes | tim.plunkett |
| #9 | drupal-1820332-7.patch | 2.66 KB | dawehner |
| #4 | core-1820332-4.patch | 2.68 KB | dawehner |
| #4 | core-1820332-4-test.patch | 1.74 KB | dawehner |
Comments
Comment #1
xjmComment #2
xjmComment #3
aspilicious commentedI have a feeling this needs tests...
Comment #4
dawehnerWe need tests for so many things.
Comment #6
dawehnerProven that there is a bug.
Comment #7
damiankloip commentedLooks pretty good.
I will create a follow up issue for testing all views settings in the UI match the set variables.
We should just test for all placeholders here, not just the first?
Also, should this live in it's own method, like testUIPreview or something?
Comment #8
damiankloip commentedAfter looking the the testEditUI method, this seems to fit in there, as it tests most other parts of the edit form too.
Comment #9
dawehnerLater we should enable the settings via config() and test the output, and just test that the settings form is saving the right config.
Comment #10
aspilicious commentedThis is looking good.
Comment #11
tim.plunkettWe use instanceof most everywhere else, let's do that here as well.
Comment #12
tim.plunkettComment #13
webchickMakes sense, and comes with tests. Yay!
Committed and pushed to 8.x. Thanks!