Giter Site home page Giter Site logo

Comments (8)

leofeyer avatar leofeyer commented on June 12, 2024 1

Implemented in 5629a7d. It was surprisingly simple. 😄

from calendar-bundle.

leofeyer avatar leofeyer commented on June 12, 2024

I doubt that this is possible, because tl_calendar_events.endTime cannot be empty.

from calendar-bundle.

Aybee avatar Aybee commented on June 12, 2024

Why can this not be empty? Can't you check: if empty than equal starttime, if you need it within your logic?

from calendar-bundle.

leofeyer avatar leofeyer commented on June 12, 2024

It's because tl_calendar.startTime and tl_calendar.endTime are the two main fields that store the calculated start and end time (e.g. see here). And the end time cannot be null.

from calendar-bundle.

Aybee avatar Aybee commented on June 12, 2024

And the end time cannot be null.

As your query does not work with NULL?

@mpitz I've this in my dcaconfig

/** Events */
// Set endtime default to empty
$GLOBALS['TL_DCA']['tl_calendar_events']['fields']['endTime']['default'] = NULL;

With this setting, the End time is not set automatically when you activate Add time. So you can change the automatically set Start time and if you leave the field End time empty it gets filled with your Start time when you save the event.

BTW, why gets the Start time filled with the current time? I think this will not happen, that we want the Start time to be the current time.

from calendar-bundle.

leofeyer avatar leofeyer commented on June 12, 2024

So you can change the automatically set Start time and if you leave the field End time empty it gets filled with your Start time when you save the event.

But that's not what @mpitz wants. He wants the field to remain blank for open end events.

from calendar-bundle.

mpitz avatar mpitz commented on June 12, 2024

But that's not what @mpitz wants. He wants the field to remain blank for open end even

Right, that's not what I suggested. It is annoying and error prone if you have the set the End time again if you want to leave it open, after you've changed the Start time.

from calendar-bundle.

Aybee avatar Aybee commented on June 12, 2024

Wow. Thank you. 👍 🥇 💯

from calendar-bundle.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.