Closed abbistani closed 4 years ago
HA!
Well, I'm merging it into my local working branch at the very least, as it seems to work for my purposes. Thanks!
Passing in an empty string field from the data gets treated as a nil field value and dropped.
But coming along after all the blank fields are dropped and blank nodes dropped, and transforming 💣 fields to empty is great.
I used this to remove the briefDescription field from a record on core.dev and the record is found for a search on title contains a word AND briefDescription is blank.
I don't know if this should actually merged, because it's the epitome of quick and dirty, but it works. :-) All it does is go through the document tree after the empty nodes are deleted and clear any text node that has a 💣 anywhere in it.
Hoping @kspurgin is amused.