Multiple string type fields on the same node require multiple replace runs

Created on 18 April 2024, 9 months ago

Problem/Motivation

From what I can tell, and I could be wrong, the condition for the string field type has a condition thats checked too early to allow multiple string fields on the same node to have their field content replaced in one run

Steps to reproduce

1. Fresh D10.2.4
2. Latest version of Scanner
3. Enable the Scanner module
4. Add 2/3 plain text, short fields to the basic page content type
5. Configure Scanner to use the new fields
6. Add a new basic page
7. Add the same text for all 3 of the fields added in step 4
8. Run a Scanner search for the string in step 7
9. Replace with something else

Expected: All 3 fields will be updated with the new string
Actual: Only the first field is updated

Proposed resolution

Move the condition that checks for a new vid to a similar position where it fires for text_long (etc)

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom aaron.ferris

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024