I'm running into something really weird all of a sudden.......
I have 2 fields using 'Explode' and both are exploding on '>>' to put terms into the db.
The first vocab, "Business Category" is working fine.
It looks like this:
-Autos
--Auto Detailers
The created node (er....entity) gets created with both of those values.
However, the second field using a different vocab ('Coupon Type') is bombing on the children. It looks like this:
-% Off
--5
The created entity gets the value of '% Off' but not the '5'. It's being inserted into the db as '5' to boot! (As opposed to matching on the '5' and inserting that tid.)
However, if I change the second vocab ('Coupon Type') to this:
-% Off
--five
.....it works.
I swear I had this working earlier and am absolutely perplexed. (Which invariably means it's something ridiculous, usually.)
Hence, my reluctance to get into bug-fixing mode.
Thanks.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | explode_d.PNG | 5.14 KB | otcassetmgmt |
Comments
Comment #1
aaronelborg commentedFeeds issue.
Fixed.
http://drupal.org/node/1426762#comment-5612248
Comment #2
twistor commentedComment #3
otcassetmgmt commentedIf I use a string it works, but I can't use the explode function on a straight up $variable it doesn't output an array?
This works
This does not work it outputs a string screenshot attached