What this solution does
The module records changes to information block elements: creation, editing, and deletion. Both standard fields and user-defined properties (PROPERTY_*) are logged. Administrative panel pages allow viewing the change log and restoring values to a previous state.
If the information block is configured as a trade catalog (catalog module), the system additionally tracks catalog parameters: purchase price, VAT rate, prices for all price types, base price currency, unit of measure, unit coefficient, weight, and dimensions (length, width, height).
The main administrative menu includes the 'Information Block Element History' section, displaying a list of records. Filtering is available by information block, specific element, and change date.
The detailed record page presents a comparison of 'Before' and 'After' states. The interface visually distinguishes standard fields from properties, includes a toggle to show only changed parameters, and features a tab with the complete change history for the element.
The module restores element fields and properties to the 'Before' state based on a selected history record. Only fields that were actually modified are restored; properties of the 'File' type are not restored. The restoration event is logged as a separate record with the user and timestamp.
When restoring a deleted element from a deletion record, a new element is created with fields and properties from the saved 'Before' snapshot.
A 'History' tab is added to the standard element editing page. It displays a compact list of records for that element: ID, action, and date are links to detailed views; the user name is a link to their profile.
Old history records are automatically cleaned up by an agent; the retention period is configurable.
General iT can connect “InfoBlock Element History (with restoration)”, configure it and verify the integration with the existing website.