I created a binary poll by using advanced poll module. Then I installed Search and Replace module. When I do a search from the page mydomain.com/search_and_replace via this module, it is deleting the choices in my advanced poll.
Steps to create
1) Create a binary poll with thre choices called x1, x2, x3
2) Do a search by using search and replace module. Selected options are:
Case Sensitive replace: yes
Search for: zzz
Replace with:
Search and Replace function: Search Body and Title Text
Search in these content types: Select All Types
When I click on submit, I get this message:
# Deleted choice x1
# Deleted choice x2
# Deleted choice x3
# Could not find a solution within 0 iterations.
# 0 occurrences found in the following node bodies and titles:
Why is it deleting the choices of the poll? I chose only "Search Body and Title Text". I did not choose "Search and Replace Body and Title Text".
BTW, also using Revisioning module. It shows me that poll is updated when the search is done.
Comments
Comment #1
btopro commentedhmm. My loop sucks, nodes are saved even when they are just looped through for searching w/o replacement. This may conflict with that module you just mentioned. That's my guess, did you try turning that module off to see if the "feature" can be replicated. Can't access CVS from where I am atm
Comment #2
mcload commentedfeature? How can I check the conflict after turning off the module that it conflicts?
Re-saving nodes even without replacement is dangerous.
Comment #3
btopro commentedthat was a cvs goof on my part, that was supposed to be resolved in b4, getting pushed to b5. Globally searching and replacing content is risky business in the first place...
Comment #4
mcload commentedOf course "searching and replacing" is a risky business. However, I installed this module because the module description on the main page says that it can do "Perform just a search". I did not expect doing "just a search" to be dangerous, but it turned out to be dangerous in this module.
Comment #5
btopro commentedthe adverse affects were from the usage of a different module. Don't select polls or don't have that module turned on and this won't occur.