Preparations
- go to Admin Console
- go to Configuration → Website → Advanced section
- if "Track database changes to change log" setting is disabled, then enable it and logout
Part 1
- in IDE:
- open "core/kernel/db/db_event_handler.php" file for editing
- locate "\kDBEventHandler::_update" method
- change "if ( $object->Update($id) ) {" line into "if ( $object->Update($id, array('l1_Translation', 'LastChanged', 'LastChangeIP')) ) {"
- save changes
- in Admin Console:
- go to Website & Content → Labels & Phrases section
- open any record for editing
- change "Label" and "Phrase" fields
- save changes
- go to Logs & Reports → Changes Log section
- open record, that was just added
- confirm, that only changes to l1_Translation' and 'LastChanged' (optionally 'LastChangeIP') fields are shown there, because only they were saved into the database (only lines having "=>" represent a changed field value)
Part 2
- in IDE:
- open "core/kernel/db/db_event_handler.php" file for editing
- rollback any changes to "\kDBEventHandler::_update" method made before
- save changes
- in Admin Console:
- go to Website & Content → Labels & Phrases section
- open any record for editing
- change "Label" and "Phrase" fields
- save changes
- go to Logs & Reports → Changes Log section
- open record, that was just added
- confirm, that only changes to 'Phrase', 'PhraseKey', l1_Translation' and 'LastChanged' (optionally 'LastChangeIP') fields are shown there, because they were saved into the database
Part 3
- in Admin Console:
- go to Website & Content → Labels & Phrases section
- add new record
- confirm, that record was added correctly and that action present in Changes Log
- delete added record
- confirm, that record was deleted correctly and that action present in Changes Log