Git Product home page Git Product logo

processwire-fieldtypebusinesshours's People

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

processwire-fieldtypebusinesshours's Issues

function getCompatibleFieldtypes is not compatible

As of Processwire 3.0.140 there exists a new function in Fields.php called getCompatibleFieldtypes, which unfortunately breaks the Business hours fieldtype. This is the php error I get once I try to open the settings of the fields:

Fatal Error: Uncaught Error: Call to a member function prepend() on null in /srv/www/wire/core/Fields.php:1066
Stack trace:
#0 /srv/www/wire/modules/Process/ProcessField/ProcessField.module(1412): ProcessWire\Fields->getCompatibleFieldtypes(Object(ProcessWire\Field))
#1 /srv/www/wire/core/Wire.php(380): ProcessWire\ProcessField->___buildEditFormBasics()
#2 /srv/www/wire/core/WireHooks.php(813): ProcessWire\Wire->_callMethod('___buildEditFor...', Array)
#3 /srv/www/wire/core/Wire.php(442): ProcessWire\WireHooks->runHooks(Object(ProcessWire\ProcessField), 'buildEditFormBa...', Array)
#4 /srv/www/wire/modules/Process/ProcessField/ProcessField.module(1020): ProcessWire\Wire->__call('buildEditFormBa...', Array)
#5 /srv/www/wire/core/Wire.php(380): ProcessWire\ProcessField->___buildEditForm()
#6 /srv/www/wire/core/WireHooks.php(813): ProcessWire\Wire->_callMethod('___buildEditFor...', Array)
#7 /srv/www/wire/core/Wire.php (line 1066 of /srv/www/wire/core/Fields.php)

This error message was shown because: you are logged in as a Superuser. Error has been logged.

Get end of range

Hey @thuijzer

thanks for this wonderful plugin. Very helpful!

One question is it somehow possible to get the end of the current range?
Let's say it's Monday at 15:00h, the range for Monday is 10.00-12.00,13.00-17.00
I would need to get 17:00 to calculate the remaining time a visitor has to join the party (2hours).

Thanks for your help!

Cheers,

Toni

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.