When I create a node with multiple dates (like 08/04/2016, 08/05/2016 and 08/06/2015) the all show up on the 4th.

screenshot

CommentFileSizeAuthor
#9 interdiff-5-9.txt3 KBAnonymous (not verified)
#9 nodes_with_multiple-2639794-9.patch6.67 KBAnonymous (not verified)
#5 Screenshot from 2015-12-29 18-44-11.png11.88 KBparijke
#4 nodes_with_multiple-2639794-4.patch4.61 KBAnonymous (not verified)
Screenshot from 2015-12-23 13-42-23.png11.64 KBparijke
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

parijke created an issue. See original summary.

Anonymous’s picture

I verified that this is a regression and it looks very much like something we introduced while porting. I'll look into it more thoroughly when I have a bit more time.

Thanks for reporting!

parijke’s picture

Very welcome. I wish I could help to solve it.

Anonymous’s picture

Status: Active » Needs review
FileSize
4.61 KB

Actually we didn't introduce it. We simply didn't port it yet. This patch should fix your issue and does some additional clean-up and documenting around the edges.

This definitely needs some more testing though.

parijke’s picture

A quick glance and it looks like it is working now!

screen

Anonymous’s picture

Status: Needs review » Needs work

Apparently this breaks adding the links on the year view and at one point I had php exception. This will need further investigation.

Anonymous’s picture

Actually, using the row index here is just wrong. We'll need something to track the field delta's similar to what the D7 version did, but without the magical setting of properties. I'm thinking we might be able to store the info in de date info object if we document it properly. I'll have to think about that.

Also this issue clearly demonstrates the need for automatic testing.

parijke’s picture

Can I help in any way?

Anonymous’s picture

Status: Needs work » Needs review
FileSize
6.67 KB
3 KB

Here is the approach I was thinking about. This again will need extensive testing.

parijke’s picture

If I try to apply this patch I get:
Reversed (or previously applied) patch detected!

How do I (re)apply this later patch? Sorry for my ignorence and a happy NY to you all.

parijke’s picture

Ok I managed to add the patch. When testing it I saw the following behaviour.

When I add an event with a date and a time as 12:00:00 AM it doesn't show in the calendar. I Think it is unrelated to this situation. If so, I am happy to file another bug.

Anonymous’s picture

Re #10: I'm not sure how you are applying the patch, but we use git for code management, see https://www.drupal.org/project/drupal/git-instructions

Re #11: I tested this using fields with 24h and I see the same issue. I also tried this against the 8.x-1.x branch without this patch and it gave the same result, so this patch does not introduce this bug. A new bug report would be good to track that.

Did the patch in #9 work for you?

  • pjonckiere committed 81b618f on 8.x-1.x
    Issue #2639794 by pjonckiere: Nodes with multiple dates show up on same...
Anonymous’s picture

Status: Needs review » Fixed

I did some further manual testing and it seems ok to me, so I went ahead and pushed it to 8.x-1.x.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.