Found while attempting tests for #458934: Image fields not showing up on 5-10-09 cvs head

If a conditional field is completely deleted and a new field is made using the same name in the same content type, the new field will be marked "conditional" and never appear, no matter what selection is made in it's conditional settings.

Steps to reproduce.

Make a field
Make another field marked conditional for the above field.
Delete both fields.
Make another field using the same name as the second field, this field will have the bug.

Comments

RoboPhred’s picture

I checked in my database and confirmed the conditional field entries are still there after the fields have been deleted. In once case I had two entries with the same content.

peterpoe’s picture

This is strange. I cannot reproduce. Deletion of cf information is handled by conditional_fields_content_fieldapi, and all deletion of fields seems to be working fine to me. You can try to delete all cf information from the database, and then repeat the steps. It may be that the table contains old data that is interfering?

RoboPhred’s picture

I tested it again and it still occures. I wasn't clear on my first post: you have to delete the controlling field first, then delete the field that was being controlled.

Just deleting the controling field shows that the field that was being controlled is still marked as such, so there really is no need to delete it and remake it, but that shows the value is still sitting around unconnected to any cck field event.

peterpoe’s picture

Still can't reproduce. Have you tried with a clean installation?

peterpoe’s picture

Status: Active » Postponed (maintainer needs more info)

Please reopen if the issue persists.

RoboPhred’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

Cleaning up my old issues. I finished the project and don't recall having any other issues.