| @@ -60,9 +60,9 @@ | ||
| 60 | 60 | |
| 61 | 61 | // check all groups for a unique value |
| 62 | 62 | $unique_value = $this->find_unique_field_in_data($data, $field); |
| 63 | 63 | |
| 64 | - if (!empty($unique_value)) { | |
| 64 | + if ($this->has_identifier_value($unique_value)) { | |
| 65 | 65 | $has_unique_field = true; |
| 66 | 66 | |
| 67 | 67 | if (in_array($field, ['ID', 'user_login', 'user_nicename', 'user_email', 'user_url'])) { |
| 68 | 68 | $search_columns[] = $field; |
| @@ -82,9 +82,9 @@ | ||
| 82 | 82 | } |
| 83 | 83 | } |
| 84 | 84 | |
| 85 | 85 | if (!$has_unique_field) { |
| 86 | - throw new MapperException(__("No Unique fields present.", 'jc-importer')); | |
| 86 | + throw new MapperException(__('No unique identifier value present. Check that Permissions has a unique identifier set and this row has a non-empty value. File column references are stored as _iwp_ref_uid.', 'jc-importer')); | |
| 87 | 87 | } |
| 88 | 88 | |
| 89 | 89 | // create search |
| 90 | 90 | $query_args['search'] = implode(', ', $search); |