Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
C
Core
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1,012
    • Issues 1,012
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Development
  • Core
  • Issues
  • #1210

Closed
Open
Created Aug 27, 2019 by scardinius@scardiniusDeveloper

Set ruleFields variable from Supervised rules instead of hardcoded list

Smarty template of Contact form included commented line {*$ruleFields|@json_encode*} https://github.com/civicrm/civicrm-core/blob/31ca8316cbcdbfba51b9295d9598d71811b7f308/templates/CRM/Contact/Form/Contact.tpl#L267 and hardcoded list of fields.

This is a reason of unexpected behauvior because Supervised rules are not used during creating new contact with option Check for Similar Contacts [ While Typing ]

Below method returns sql column names instead of names in api naming (custom_*) - this is a problem for api contact.get in Contact.tpl

$this->assign('ruleFields', CRM_Dedupe_BAO_Rule::dedupeRuleFields($ruleParams));

https://github.com/civicrm/civicrm-core/blob/31ca8316cbcdbfba51b9295d9598d71811b7f308/CRM/Contact/Form/Contact.php#L779

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None