Uploaded image for project: 'In-Portal CMS'
  1. In-Portal CMS
  2. INP-1571

Form field validation should account for array-like field values

    XMLWordPrintable

    Details

    • Type: Bug Report
    • Status: Needs Review
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 5.2.2
    • Component/s: Data Management
    • Labels:
      None

      Description

      Make the following changes to "kValidator::ValidateRange" method:

      1. move detection of value length to top of the method
      2. always use "mb_strlen" function
      3. when field has non-scalar value (checked by "is_scalar" function call), then consider value length as 0

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                alex Alex
                Reporter:
                alex Alex
                Developer:
                Erik Snarski [Intechnic]
                Reviewer:
                Alex
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Time Tracking

                  Estimated:
                  Original Estimate - 2.5h Original Estimate - 2.5h
                  2.5h
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 5h 35m
                  5h 35m