Problem/Motivation

Don't display the "@size limit" for file.

Steps to reproduce

1- Add file element
2- You can see the "@size limit"
3- The code is already there but need to update the condition

  $descriptions = array_filter(
    $variables['descriptions'],
    fn($description) => $file_limit_description->getUntranslatedString() != '@size limit.'
  );

Proposed resolution

Fix the condition:

  $descriptions = array_filter(
    $variables['descriptions'],
    fn($description) => $description->getUntranslatedString() != '@size limit.'
  );

Issue fork webform-3553808

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

asghar created an issue. See original summary.

asghar changed the visibility of the branch 3553808-incorrect-size-limit to hidden.

asghar changed the visibility of the branch 3553808-incorrect-size-limit to active.

asghar’s picture

StatusFileSize
new721 bytes

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

jrockowitz’s picture

Status: Active » Reviewed & tested by the community

The MR makes sense to me.

jrockowitz’s picture

Status: Reviewed & tested by the community » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

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