- Merge request !4Issue #3346222: Undefined array key "type" in Drupal\Core\Render\Element\Date::processDate() → (Open) created by robertoperuzzo
- 🇦🇷Argentina tongadall
In yout patch #3 the second
$element['min']['#attributes']['type'] = 'date';
should be['max']
I guess. - 🇮🇹Italy robertoperuzzo 🇮🇹 Tezze sul Brenta, VI
@tongadall you are right!
Here is the fixing patch.
- Issue was unassigned.
- Status changed to Needs review
over 1 year ago 8:59am 8 May 2023 - Open on Drupal.org →Core: 10.1.x + Environment: PHP 8.1 & MySQL 8last update
over 1 year ago Waiting for branch to pass - 🇮🇳India Raveen Kumar
I have reviewed and applied patch #5 on my Drupal version - 9.5.1 and PHP version 8.1. The Patch is working fine for me as well. Thank You.
- Open on Drupal.org →Core: 10.1.x + Environment: PHP 8.1 & MySQL 8last update
over 1 year ago Waiting for branch to pass - 🇮🇹Italy robertoperuzzo 🇮🇹 Tezze sul Brenta, VI
I did another patch to use input
type="datetime-local"
, if could be useful for someone.https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/datetime...
- last update
over 1 year ago Build Successful - 🇦🇹Austria maxilein
The patch does not apply to the latest dev-1.x nor to 2.0
Is it still required?
- 🇦🇹Austria maxilein
The error has gotten worse ...
The website encountered an unexpected error. Please try again later. ArgumentCountError: Too few arguments to function Drupal\date_popup\DateRangePopup::applyDatePopupToForm(), 1 passed in /var/www/web/modules/contrib/date_popup/src/DateRangePopup.php on line 20 and exactly 2 expected in Drupal\date_popup\DateRangePopup::applyDatePopupToForm() (line 40 of modules/contrib/date_popup/src/DatePopupTrait.php). Drupal\date_popup\DateRangePopup->buildExposedForm() (Line: 111) Drupal\views\Form\ViewsExposedForm->buildForm() call_user_func_array() (Line: 536) Drupal\Core\Form\FormBuilder->retrieveForm() (Line: 283) Drupal\Core\Form\FormBuilder->buildForm() (Line: 134) Drupal\views\Plugin\views\exposed_form\ExposedFormPluginBase->renderExposedForm() (Line: 1253) Drupal\views\ViewExecutable->build() (Line: 392) Drupal\views\Plugin\views\display\PathPluginBase->execute() (Line: 196) Drupal\views\Plugin\views\display\Page->execute() (Line: 1645) Drupal\views\ViewExecutable->executeDisplay() (Line: 81) Drupal\views\Element\View::preRenderViewElement() call_user_func_array() (Line: 111) Drupal\Core\Render\Renderer->doTrustedCallback() (Line: 788) Drupal\Core\Render\Renderer->doCallback() (Line: 377) Drupal\Core\Render\Renderer->doRender() (Line: 204) Drupal\Core\Render\Renderer->render() (Line: 238) Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() (Line: 583) Drupal\Core\Render\Renderer->executeInRenderContext() (Line: 239) Drupal\Core\Render\MainContent\HtmlRenderer->prepare() (Line: 128) Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse() (Line: 90) Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray() call_user_func() (Line: 111) Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch() (Line: 171) Symfony\Component\HttpKernel\HttpKernel->handleRaw() (Line: 74) Symfony\Component\HttpKernel\HttpKernel->handle() (Line: 58) Drupal\Core\StackMiddleware\Session->handle() (Line: 48) Drupal\Core\StackMiddleware\KernelPreHandle->handle() (Line: 106) Drupal\page_cache\StackMiddleware\PageCache->pass() (Line: 85) Drupal\page_cache\StackMiddleware\PageCache->handle() (Line: 48) Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle() (Line: 51) Drupal\Core\StackMiddleware\NegotiationMiddleware->handle() (Line: 51) Drupal\Core\StackMiddleware\StackedHttpKernel->handle() (Line: 704) Drupal\Core\DrupalKernel->handle() (Line: 19)
- Status changed to Active
over 1 year ago 2:03pm 28 July 2023 - 🇦🇹Austria maxilein
switching to https://www.drupal.org/project/jquery_ui_datepicker → for the time being...
- 🇨🇾Cyprus gregcy
Attached is the patch from #5 but for version 2.x of the module.
- 🇺🇸United States jimmynash
Tested patch in #19 and it cleared the problem for me after a fresh install of 2.0.0
Thanks!
-
larowlan →
committed 62100fc1 on 2.x authored by
gregcy →
Issue #3346222 by robertoperuzzo, gregcy: Undefined array key "type" in...
-
larowlan →
committed 62100fc1 on 2.x authored by
gregcy →
- Status changed to Fixed
about 1 year ago 1:08am 13 September 2023 Automatically closed - issue fixed for 2 weeks with no activity.
- First commit to issue fork.