Commit dad1f61
authored
Duplicates: don't show already closed duplicate contacts (#2750)
* Enhance duplicate checking by adding 'ignore_archived' parameter to API calls
- Updated the API call in contacts.js to include an 'ignore_archived' option when fetching duplicates.
- Modified the duplicates-merging.php to handle the new parameter, allowing for more refined duplicate searches by excluding archived records.
* Refactor API call formatting in contacts.js for improved readability
- Updated the formatting of the API call to get duplicates, enhancing code clarity by aligning parameters and removing unnecessary line breaks.
* Refactor duplicate checking API calls to remove 'ignore_archived' parameter
- Simplified the API call in contacts.js by removing the 'ignore_archived' parameter when fetching duplicates.
- Updated duplicates-merging.php to reflect this change, ensuring consistent handling of duplicate searches without the archived status filter.
* Refactor API call formatting in contacts.js for improved readability
- Enhanced the formatting of the API call to get duplicates by aligning parameters and removing unnecessary line breaks for better clarity.
- Updated the promise handling to improve code structure and maintainability.
* Refactor duplicate search logic in duplicates-merging.php
- Updated the method for querying duplicate searches to use get_post_field_settings for improved clarity.
- Simplified the construction of search queries by directly assigning values to the search_query array.
- Added logic to filter out already merged records from the duplicate checks, ensuring that only relevant duplicates are processed.
- Enhanced SQL query to exclude posts marked as 'duplicate' in the reason_closed field, improving the accuracy of duplicate detection.
* Refactor condition check in duplicates-merging.php for improved readability
- Updated the condition for excluding merged records to enhance clarity by adjusting spacing in the array syntax.
- Ensured consistent formatting in the logic that filters out already processed duplicates.
* fix phpcs1 parent 363c33e commit dad1f61
1 file changed
Lines changed: 28 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
| 144 | + | |
144 | 145 | | |
145 | 146 | | |
146 | 147 | | |
| |||
156 | 157 | | |
157 | 158 | | |
158 | 159 | | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
159 | 184 | | |
160 | 185 | | |
161 | 186 | | |
| |||
199 | 224 | | |
200 | 225 | | |
201 | 226 | | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
202 | 230 | | |
203 | 231 | | |
204 | 232 | | |
| |||
0 commit comments