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) »
  • Alpha and Beta Release Testing »
  • 4.6 Release Testing »
  • Updating a custom field via the JS UI doesn't update changelog [FILED]
Pages: [1]

Author Topic: Updating a custom field via the JS UI doesn't update changelog [FILED]  (Read 1295 times)

John.K

  • I post occasionally
  • **
  • Posts: 75
  • Karma: 5
  • CiviCRM version: 4.x
  • CMS version: Drupal 7
  • MySQL version: 5.x
  • PHP version: 5
Updating a custom field via the JS UI doesn't update changelog [FILED]
January 22, 2015, 02:58:02 am
Summary
Updating a contact's custom field data via the main admin UI does not add a changelog, and therefore does not update the 'Last updated' date of the contact.
If updated via the API, or by clicking 'Edit' on a contact, it does.

Steps to recreate on dmaster.demo
  • Create a new custom fieldset used for contacts, with two fields: 'Custom text' (alphanum, text)
  • View a contact record, note the 'Changelog' number, and the last updated date
  • Update only the 'Custom text' field on the contact record via the JavaScript interface (click on the field, add data, save)
  • Note that there is no changelog, and no change in 'Last updated' date

  • Now click 'Edit' on the contact record
  • Change only the 'Cutsom text' field
  • Save
  • Note that there is a changelog, and the 'Last updated' date has updated

This is a combination of these two fixed issues on JIRA:
https://issues.civicrm.org/jira/browse/CRM-11854
https://issues.civicrm.org/jira/browse/CRM-10479

I've opened an issue on JIRA here:
https://issues.civicrm.org/jira/browse/CRM-15858
« Last Edit: March 05, 2015, 06:49:21 pm by Coleman Watts »

rocxa

  • I post occasionally
  • **
  • Posts: 40
  • Karma: 4
  • CiviCRM version: 4.5.5
  • CMS version: Drupal 7.34
  • MySQL version: 5.1.71
  • PHP version: 5.3.3
Re: Updating a custom field via the JS UI doesn't update changelog
January 22, 2015, 05:16:17 am
This issue appears to be linked to the changelog issue where editing a custom field creates a bad log entry.  Logging needs to be enabled to recreate this error.

1. enable logging
2. create a custom field for individual
3. edit custom field via js ui OR using edit link
4. view change log
5. see error

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: Updating a custom field via the JS UI doesn't update changelog
January 22, 2015, 06:29:18 am
Rocxa is the "bad changelog entry" issue filed in Jira?
Try asking your question on the new CiviCRM help site.

rocxa

  • I post occasionally
  • **
  • Posts: 40
  • Karma: 4
  • CiviCRM version: 4.5.5
  • CMS version: Drupal 7.34
  • MySQL version: 5.1.71
  • PHP version: 5.3.3
Re: Updating a custom field via the JS UI doesn't update changelog
January 23, 2015, 02:11:50 am
This open issue is the closest one I can find,  but the description isn't exactly the same.
https://issues.civicrm.org/jira/browse/CRM-14819

It looks as though the changelog issue has occurred repeatedly over time with many issues with similar titles all marked as fixed in previous versions.

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: Updating a custom field via the JS UI doesn't update changelog
January 23, 2015, 05:54:48 am
Roxa if you can provide steps to reproduce the bug you are experiencing (e.g. on our demo server) then please file a new issue.
Try asking your question on the new CiviCRM help site.

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: Updating a custom field via the JS UI doesn't update changelog
January 23, 2015, 06:01:32 am
John I have worked to fix the issue you filed.

Can you check it on http://dmaster.demo.civicrm.org/
Try asking your question on the new CiviCRM help site.

rocxa

  • I post occasionally
  • **
  • Posts: 40
  • Karma: 4
  • CiviCRM version: 4.5.5
  • CMS version: Drupal 7.34
  • MySQL version: 5.1.71
  • PHP version: 5.3.3
Re: Updating a custom field via the JS UI doesn't update changelog
January 23, 2015, 07:28:17 am
Hi Coleman,

I have just tested http://dmaster.demo.civicrm.org/

The original problem with custom fields not updating the changelog appears to be fixed (if logging is disabled) but...

I then enabled logging in system settings and editing a few custom fields on these records:
http://dmaster.demo.civicrm.org/civicrm/contact/view?reset=1&cid=110
http://dmaster.demo.civicrm.org/civicrm/contact/view?reset=1&cid=207

The changelog doesn't load at all for either of them and the last updated date doesn't update when updating custom fields.  Normal fields work ok.


Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: Updating a custom field via the JS UI doesn't update changelog
January 23, 2015, 07:40:27 am
Ok this is really odd. Take a look at this:

Edit any contact on http://dmaster.demo.civicrm.org/
Try the 3 different custom field sets:
- "Constituent Information" does update the change log
- So does "CBROM fields"
- But "test change log logging" does not.

Might be an issue with triggers needing to get rebuilt. Did you create that new field set before or after enabling logging?
Try asking your question on the new CiviCRM help site.

rocxa

  • I post occasionally
  • **
  • Posts: 40
  • Karma: 4
  • CiviCRM version: 4.5.5
  • CMS version: Drupal 7.34
  • MySQL version: 5.1.71
  • PHP version: 5.3.3
Re: Updating a custom field via the JS UI doesn't update changelog
January 23, 2015, 09:26:08 am
I created the 'test change log logging' fieldset and fields before enabling logging.. so in theory it should have behaved the same way as the other custom fields already created..

but as you have spotted.. it doesn't.

i just created a 'test change log logging after enabling' fieldset and fields.. and they seem to work ok

« Last Edit: January 23, 2015, 09:32:55 am by rocxa »

rocxa

  • I post occasionally
  • **
  • Posts: 40
  • Karma: 4
  • CiviCRM version: 4.5.5
  • CMS version: Drupal 7.34
  • MySQL version: 5.1.71
  • PHP version: 5.3.3
Re: Updating a custom field via the JS UI doesn't update changelog
January 28, 2015, 08:12:35 am
Running
/civicrm/menu/rebuild?reset=1&triggerRebuild=1
Doesn't seem to help and the bad log records remain for custom fields created before enabling logging.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Alpha and Beta Release Testing »
  • 4.6 Release Testing »
  • Updating a custom field via the JS UI doesn't update changelog [FILED]

This forum was archived on 2017-11-26.