Closed (fixed)
Project:
Views (for Drupal 7)
Version:
6.x-2.x-dev
Component:
User interface
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
24 Apr 2010 at 19:20 UTC
Updated:
4 Jun 2011 at 06:52 UTC
Jump to comment: Most recent file
Comments
Comment #1
dawehnerIf a error console returns something then there is a php error.
Without this php error its impossible to fix this bug. You can get this php with
a) your php logs
b) perhaps they error is displayed as the result. Therefore have a look at the result of the request with firebug
Comment #2
esmerel commentedThat's the nutty thing; there's nothing in the php log either.
Merlin and I looked at this, and something whacky is going on; we're getting different results when we try the same thing. In my case, when I test it now, it pulls up an entirely different view. So we're going to look at it later when he gets a chance.
Comment #3
esmerel commentedA basic view I created that does this (780768.txt). I exported it, and imported to 3.x, and it did the second attachment 2xto3ximporterror.txt (technically, that should be a new issue, but I'm attaching it here in case there's something in it that leads to figuring out the problem)
Comment #4
esmerel commentedI had another view configured as a block - if I disable that view, the wrong view coming up is no longer a problem, and the sorts work normally, but my configuration screen disappears again. dereine said something about clashing dom ids, so I'm making note of that.
I removed all views that were configured as blocks, but the config ui still disappears with no errors in the page or any logs.
Comment #5
esmerel commentedHere's the original URL for editing the view: http://localhost/drupal-test/?q=admin/build/views/edit/sorting
After clicking one of the sortable columns, the url changes tohttp://localhost/drupal-test/?q=admin/build/views/nojs/preview/sorting/d...
Comment #6
esmerel commentedThis breaks if you're not using clean urls, which cause the code to blow up and degrade to the non-js version.
Comment #7
esmerel commented16:20] if (url.substring(0, 18) != '/admin/build/views') {
[16:20] That doesn't take into account the clean URL version
[16:22] merlinofchaos: isn't that a js variable for the base url?
[16:22] which could be used here
[16:23] Drupal.settings.basePath
[16:23] no ?q there
Comment #8
dawehnerSorry it's night. Here is a first definitive not working version
Comment #9
dawehnerI have both non-clean urls as well as a basePath different from '/'
Comment #10
dawehnerThis is a working version for me
Comment #11
dawehnerAssign to esmerel to test the patch
Comment #12
merlinofchaos commentedThere is already a Drupal.views.getPath() in base.js -- we either need to use that one, update that one so it can be used, or pick a different function name, because it's very bad to have one overwrite the other.
Comment #13
dawehnerHere is a rerole.
Manual testing on www/d6?q=admin/build/views... worked fine.
Comment #14
merlinofchaos commentedCommitted to all 6.x branches. I don't htink this is relevant for 7.x
Comment #15
aspedia commentedThat little line in the above patch breaks so many little things on my site. it causes breadcrumbs to be shown on pages that did not have any before, it causes noderelationships module to get confused and think that when you have set up a reverse relationship, that the relationship always exists to all posts... These are just things I noticed right away, there might be more, however commenting out the above change, causes all these problems to no longer exist.
All these pages do have blocks and/or attachments or views panes on them, which might be helping bring this issue to light? I should also comment, that these blocks, attachments etc, are all different displays on the same view.
Comment #16
aspedia commentedAlso managed to fix the problem with the attached patch... Is this a proper solution?
Comment #17
aspedia commentedUpdating version.
Comment #18
aspedia commentedComment #19
aspedia commentedComment #20
dawehnerThis patch is great. You should have bumped the patch ;), because this really fixes a problem.
Commited to all branches.
Added a test which clarified the bug and showed that the issue will be solved with this patch.