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

Allow all textfield-sizes in schema, remove predefined length.

    Details

    • Type: Improvement
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.7
    • Fix Version/s: 4.7.9
    • Component/s: None
    • Labels:
      None
    • Documentation Required?:
      Developer Doc
    • Funding Source:
      Needs Funding

      Description

      When defining the size of a text-element in the schema. The only allowed values are predefined fixed vlaues.
      See CRM_Core_CodeGen_Specification
      /**

      • Sets the size property of a textfield.
      • See constants defined in CRM_Utils_Type for possible values
        */
        protected function getSize($fieldXML) {}
        For example it's not possible to define a field size of 30 in the schema. (Even more when you do, it creates a size of 40 (the default value)).

      My suggestion is to remove this limitation, and remove the double array mapper. I would alos remove the generated classes and corresponding css.

        Attachments

          Activity

            People

            • Assignee:
              mallezie Tim Mallezie
              Reporter:
              mallezie Tim Mallezie
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: