Please redirect me if this is not the correct project for this issue and if the priority "major" is not appropriate.

I have several existing views that have a Views filter for date cck fields.

The operator selection drop down no longer works on any of them and the settings cannot be changed.

Also, if a view is created with a new date filter the operator is set to the default "is equal to" and no other options can be selected.

The selection boxes for everything else still work; use a relationship, year, month, day.

This is with the recent date and calendar 6.x-2.x-dev releases and views 6.x-2.x-dev from Jan 3.

Attempts to revert to previously used versions of date and calendar result in "Broken or missing handler" errors. And attempts to revert to earlier versions of Views give update warnings and failures.

Updating to the new views 6.x-2.x-dev release and cck 2.9 does not fix this.

So, I need to stay with the current versions of date, calendar, views and cck and find a fix.

I'd appreciate any directions on how this can be fixed so that the operator selection works again.

Thanks.

Izzy

Comments

karens’s picture

Status: Active » Closed (cannot reproduce)

Can't reproduce any problem in the latest code. You may need to do some things like clear the Views cache (using the Views 'Tools' tab).

izmeez’s picture

Thanks for looking, tried clearing the Views cache, problem persists.

gregoryshearer’s picture

Status: Closed (cannot reproduce) » Active

I can confirm this issue. When setting a Views "Filter" based on a CCK Date field the "Operator" dropdown has the "Is Equal To" option selected but when you click on it you cannot change it.

For me this problem is specific to Firefox. I am on FF 3.6.15 and the bug exists. (I look at the code in FireBug and all of the form options are there, the form widget just does not pop out and allow you to select the other options.) I try the same operation in IE8 and everything works as expected. I am not sure if its a browser issue, a Flash issue.. if it can be fixed in a module (is it Views or Date), or what.

I am resetting this to active in hopes someone smarter than me can at least figure out who to pass it on to.

modulist’s picture

I experienced the same problem. It turns out that the Date Views module needed to be enabled in order to have "greater than", "less than" operators that work with date fields.

Vicki B’s picture

I had this problem when trying to create a view before adding permissions to the new content type. Gave permissions and voila, drop-down list of operators enabled!

karens’s picture

Status: Active » Postponed (maintainer needs more info)

Unable to reproduce in the latest dev code, and I use Firefox.

#4 makes no sense for this issue, the Date Views module exists only in the D7 version.

There have been lots of fixes to dev since this was reported. It may not be a problem any longer.

Anonymous’s picture

Hi KarenS - unfortunately, it's still a problem and not just with the dev version (I'm using 6.x-2.8). Not sure about 6.x-2.9, but it may be as well.

I came across this issue tonight as I was trying to filter certain Dates and I found that I was unable to change the Operator from the default setting.

I checked a few other filters, and I was able to change the Operator on them without any problem, so it's definitely Date related.

After reading through quite a few posts, I tried changing browsers (Firefox to Safari - I'm on a Mac), flushed the Views Cache etc.

None of this worked - well, kind of.

I managed to find three different workarounds for this issue.

1. Disable javascript in Views. Click on the Tools tab in Views, and check the checkbox next to "Disable javascript with Views" and click "Save configuration". This makes Views slightly more awkward to use, but still quite usable. Using this method, I was then able to change the Operator to another option and save the changes. I then re-enabled javascript with Views after making the change.

2. Use another browser (and by another browser, I mean Internet Explorer (8 worked for me) and not a recent version of Firefox, nor Safari). While I mostly use a Mac for web development work, I also have a few PC's handy as well as Parallels running XP, and it was only on a hunch that I fired up Parallels and tried IE8.

3. Use a different theme like the default Drupal 6 Garland theme and change the Date filter Operator, and then switch back (or use a different theme for Admin).

So, with all this in mind, the problem is definitely a clash with the Date module (no offence KarenS, it's a great module), Views and javascript.

The problem is that because it only occurs under certain situations, it's probably going to be a major PITA to fix.

Fortunately, there are at least some workarounds for when it does occur.

Not sure if you want to add the three workarounds to the documentation or perhaps under the D6 Notes section on the main page.

Anyway, I hope this helps anyone who does come across this issue.

Cheers,
Darren

damienmckenna’s picture

Issue summary: View changes
Status: Postponed (maintainer needs more info) » Closed (won't fix)

Unfortunately the D6 version of this module is no longer supported, but we appreciate the time you put into this. If this problem is relevant for D7 too, please reopen the issue. Thanks.

izmeez’s picture

This may be of interest to the D6 LTS project.

I'll try to ping them.