Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 291503

UI fatal caused by views argument handlers no longer can provide their own default argument handling

$
0
0

Problem

Some argument handlers provide their own default argument handling, like the Date argument. The Date argument handler does so by extending the list of of options in the defaultArgumentForm. An exception is however thrown on saving the form.

Steps to reproduce:

  • Create a new view /admin/structure/views/add using (node) content
  • Under advanced tab, add new Contextual filter, select Created date (node.created)
  • On "When the filter value is not available", select "Provide default value", on the drop-down select "Current date".
  • Try to submit this form.

Result: A fatal error occurred on dblog: Drupal\Component\Plugin\Exception\PluginNotFoundException: The "date" plugin does not exist.

Proposed resolution

Get the date handlers in line with the other default argument handlers.
Add a 'Current date', a "Current node's creation time" and "Current node's update time" default argument handler.

Beta phase evaluation

Reference: https://www.drupal.org/core/beta-changes
Issue categoryBug because fatal errors
Issue priorityMajor because a fatal error can be created through the UI
Prioritized changesThe main goal of this issue is usability.

Manual Test Results

See #68.

To-Do Tasks

Determine whether or not hook_update_N() is necessary and writing it.


Viewing all articles
Browse latest Browse all 291503

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>