Problem/Motivation

In latest 2.0.x code, there is a call in HMSService::isValid that contains: $this->formattedToSeconds($input, $format, $element, $format_state) !== FALSE
The 4th parameter looks like it should be $form_state per the method docs.

Steps to reproduce

Proposed resolution

Fix the (likely) typo.

Remaining tasks

User interface changes

API changes

Data model changes

Issue fork hms_field-3374256

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

angrytoast created an issue. See original summary.

angrytoast’s picture

Issue summary: View changes
angrytoast’s picture

Here's a quick patch for the issue.

angrytoast’s picture

Status: Active » Needs review
kushagra.goyal’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new38.01 KB

i have reviewed the patch it's working correctly as before it was typo error. and i have checked previously it was giving null but now it is working fine. Hence moving to RTBC..

jcandan made their first commit to this issue’s fork.

jcandan’s picture

I concur, this is RTBC. Rolled patch #3 into MR !5.

jcandan’s picture

nicxvan’s picture

+1 RTBC, I fixed it on this duplicate issue here: https://www.drupal.org/project/hms_field/issues/3398710

svendecabooter’s picture

Status: Reviewed & tested by the community » Fixed
Issue tags: +DevDaysBurgas2024

Thanks for the fix! Committed now.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

nicxvan’s picture