Have an import file for notes (nominally should include an ID resolution column and a note column, but we don't get that far)
Start an import, use Entity Note
Pick anything for ‘Which entity are you importing "Notes" to’ - Contacts is probably the most normal thing
Add the upload file
Try to start the import
Expected results
Load the mapping screen, allow to continue with import
Actual results
Fatal error:
PHP Fatal error: Uncaught Error: Class name must be a valid object or a string in /var/www/html/wp-content/plugins/civicrm/civicrm/api/v3/Generic/Getunique.php:28
I believe the cause of this is that the getUniqueFields function is passing the entity table name to civicrm_api3 (line 4 of the stack trace), and the getunique implementation is then trying to load the entity name for DAO information, which returns null
As such I'm not sure if the problem is here or in the getUniqueFields implementation.
csvimport gets the values from the entity type from an APIv4 call, I believe, which are then used directly on the form; I think this could be adjusted for a workaround in the extension at least.
Steps to reproduce
Expected results
Load the mapping screen, allow to continue with import
Actual results
Fatal error:
Stack trace:
Comments
I believe the cause of this is that the getUniqueFields function is passing the entity table name to civicrm_api3 (line 4 of the stack trace), and the getunique implementation is then trying to load the entity name for DAO information, which returns null
As such I'm not sure if the problem is here or in the getUniqueFields implementation.
csvimport gets the values from the entity type from an APIv4 call, I believe, which are then used directly on the form; I think this could be adjusted for a workaround in the extension at least.