Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-10230

Custom fields with limited length not validated

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Critical
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.1.2
    • Fix Version/s: 4.6.18, 4.7.9
    • Component/s: None
    • Labels:
    • Documentation Required?:
      None
    • Funding Source:
      Contributed Code

      Description

      Steps to reproduce:

      1. Create a Custom field of Type text with a length set to some small number.
      2. Access a form containing that field (profile or built-in forms)
      3. Enter some text in the field that exceeds the specified length & submit the form.

      Expected results:
      Form widget should not accept characters beyond the specified length. If a string that is too long is submitted, form should not validate, and user should be notified that submitted value exceeds the allowed length. If a value is submitted via API that exceeds the limit defined for the field, the API should return an error.

      Actual results:

      Submitted value is silently truncated; there is not alert to the user that data has been lost.

        Attachments

          Activity

            People

            • Assignee:
              sunil Sunil Pawar
              Reporter:
              mchapman2000 Matt Chapman
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: