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

Allow textfield size to be defined in schema xml

    Details

    • Type: Improvement
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.3.0
    • Fix Version/s: 4.3.0
    • Component/s: None
    • Labels:
      None

      Description

      Up to and including 4.2 codeGen would set the size of a textfield based on the varchar length and there was no way to override that setting.
      We are adding a new xml tag <size>, the contents of which must correspond to the constants defined in CRM_Utils_Type (TWO, FOUR, BIG, HUGE, etc.).
      Usage example (Contact.xml):
      <field>
      <name>nick_name</name>
      <type>varchar</type>
      <length>128</length>
      <size>BIG</size>
      ... etc.
      </field>
      This will allow us to remove many of the template hacks which were setup to present textfields at the size users expect.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                dgg David Greenberg
                Reporter:
                colemanw Coleman Watts
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 3 hours
                  3h