Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • C CiviCRM Core
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1,372
    • Issues 1,372
    • List
    • Boards
    • Service Desk
    • Milestones
  • Deployments
    • Deployments
    • Releases
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Development
  • CiviCRM Core
  • Issues
  • #290

Closed
Open
Created Jul 27, 2018 by bgm@bgmOwner

If locationType name/label are different, for non-billing locations, the contribution form will not pre-populate known fields

How to reproduce:

  • Login on https://dmaster.demo.civicrm.org
  • Go to the contact record of the demo user, and enter a "Home" address
    • https://dmaster.demo.civicrm.org/civicrm/contact/view?reset=1&cid=203
  • Configure this contrib form, in Profiles, select the "Name and Address" profile (it includes the 'Home' address):
    • https://dmaster.demo.civicrm.org/civicrm/admin/contribute/custom?reset=1&action=update&id=1
  • Witness how it will correctly pre-populate the Home address on the contrib form:
    • https://dmaster.demo.civicrm.org/civicrm/contribute/transact?reset=1&id=1

Capture_d_écran_de_2018-07-27_17-50-57

That works because the name = label. Let's change the label of the Location Type:

  • Change the Location Type label of "Home" to "Home2"
    • https://dmaster.demo.civicrm.org/civicrm/admin/locationType?reset=1
  • Go back to the contribution form and witness how it does not show the address anymore :-)

civi-location-types

Capture_d_écran_de_2018-07-27_17-52-23

🎉 😬

Edited Jul 27, 2018 by bgm
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking