Files
resourcespace/upgrade/scripts/023_enable_node_revert.php
2025-07-18 16:20:14 +07:00

8 lines
421 B
PHP

<?php
// Set a minimum date for fixed list field node reversion in sysvars.
// Prior to v10.1 the previous node values were not stored so batch reverting field values to a date prior to that will result in loss of data.
// This date will be checked by the rse_version plugin which will only allow users to revert edits of fixed list fields later than this.
set_sysvar("fixed_list_revert_enabled", date('Y-m-d H:i:s'));