'eventReceive: return a null for event end when dropped on weekly calendar
I'm using the fullcalendar example code external-dragging-builtin.html I've only added the eventReceive parm. Alerting the event title and start returns data. end is null. I put the code up on codepen for your review. Any help would be great. Thanks.
eventReceive: function(info) {
alert(info.event.title);
alert(info.event.start);
alert(info.event.end);
https://codepen.io/drinkingwine/pen/PoPmeEx?editors=0010
Solution 1:[1]
Ok, this is weird. After several hours of playing with this code on codepen...it's working. I have no idea why, but it's working as advertised.
I was in IT for 26 years on mainframes...my debugging skills must be getting rusty...
Solution 2:[2]
it was probably missing the forceEventDuration: true in the calendar
Solution 3:[3]
I feel like there are two different questions in this one.
First your problem is, that your entire SpringBootApplication is started because you are using @SpringBootTest use @WebMvcTest instead. You also "need" to use
@LocalServerPort
private int port;
to actually access the port you add with (webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
Your second problem
On top of that, the data is not being flushed after executing each class, so the first one works fine and the rest throw a @Unique exception because the data is already there.
Can easily be fixed by annotating your test with @Transactional tho I don't believe this to be the solution for your actual problem.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Ralph Porter |
| Solution 2 | chiarka |
| Solution 3 | SirHawrk |
