Part 1
- open the /core/units/helpers/cat_dbitem_export_helper.php file for editing
- comment out last IF (validation error removal) in the \kCatDBItemExportHelper::setFieldValue method
- save changes
- execute tests in the kOptionsFormatterTest test case
- login to the Admin Console
- go to the Website & Content → Structure & Data → Products section
- create a product
- select that product in the grid
- use Export menu item under the Tools toolbar button to export at least these product info columns:
- SKU
- Status
- CategoryPath
- l1_Name
- ProductId
- EditorsPick
- open an exported CSV file for editing
- change Status column value to any non-existing option (e.g. Non-Existing)
- go to the Tools → Import Data section
- import that modified CSV file
- go to the Website & Content → Structure & Data → Products section
- confirm that a new product wasn't created as a result of the CSV import
- go to the Logs & Reports → System Log section
- confirm, that:
- there is a record about failed product creation due to the unknown_option validation error
- it shows the wrong option title (from the CSV file)
Part 2
- login to the Admin Console
- go to the Website & Content → Polls section
- create a poll in Active status
- open that poll for editing
- in the poll unit config comment-out Active option
- in Admin Console try saving that poll
- confirm that you'll get a nice error back saying, that 1 option doesn't exist
Part 3
- locate all units that use kOptionsFormatter formatter
- for each unit:
- try adding a new record
- try editing and changing the above-added record
- confirm that the unknown_option validation error (introduced in this Differential Revision) isn't happening
- report back each unit where an error happened during correct usage and explain that usage