CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Feature Requests and Suggestions »
  • Usability Improvements (Moderator: Dave Greenberg) »
  • Makeshift 'changelog' for Addresses being modified via Profiles
Pages: [1]

Author Topic: Makeshift 'changelog' for Addresses being modified via Profiles  (Read 891 times)

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Makeshift 'changelog' for Addresses being modified via Profiles
March 15, 2010, 10:30:15 pm
Hi - the issue of keeping a persons 'old address' has come up several times = and a back end approach we will be trying out is to have an 'old address' location type - so if an address needs updating backend then the admin simply flips the existing address to 'old address' location type and adds a new one.

So I just wondered what would be the options for doing this for public forms eg Donate that are using Address fields in Profiles - ie if a person is updating an address (whether it is pre-filled in the profile because they are logged in or used a checksum -  or not) would a hook be able to be used to say
'if the person has data in this address field, then change that address field Location Type to be Old Address, and create a new Location Type of 'home' (or whatever the form is set to collect) and put this new data in that Location Type field?

Just a thought as it would cover a bit of what some of our clients miss by way of ChangeLog capturing this info.

Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Makeshift 'changelog' for Addresses being modified via Profiles
March 16, 2010, 06:55:24 am

You should be able to do this via  a postProcess hook on the main page. the addresses are processed on the confirm page. The hook can detect if values are changed (by comparing to DB) and if so clone the address. Please share the hook code if you implement this :)

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Feature Requests and Suggestions »
  • Usability Improvements (Moderator: Dave Greenberg) »
  • Makeshift 'changelog' for Addresses being modified via Profiles

This forum was archived on 2017-11-26.