Skip Navigation

Create post form stores 0 for parent in database instead of nothing

Resolved

Reported for: Toolset Forms 1.8.5

Resolved in: Toolset CRED 1.8.6

Topic Tags: Toolset Forms

Symptoms

The issue happens when creating a new post with a CRED form for a post type that has Types parent relationship with another post type. In this case, if no parent is selected, a zero (0) is stored in the database for this post’s parent meta key.

This breaks conditional shortcodes, as, normally, no such post meta key should be stored in the database, when a post has no parent. For consistency, CRED forms should follow this practice.

Workaround

This issue will be fixed in the next release of Toolset CRED

In the meantime, you can download this file, extract it and replace From_Builder_Helper.php file in the /plugins/cred-frontend-editor/embedded/classes/ folder.

Please remember to keep a backup of your site and database before doing this.

Comments are closed