Drop down resets when editing.

I have a form with drop downs populated with categories. The only problem is that when I go to edit that entry the first drop down is always blank. http://qualitymining.com/add-quote/

Can you please attach a screenshot of your "Create posts" settings tab? Which field is having trouble?

Attached. The field is the "Quote Status" drop down. This happens particularly when I choose "sale" and then save.


Attachment:
add_quote_ss

Maybe you can try a small change? It looks like the problem is that you are using multiple fields for the same category. Can you please open formidable/pro/classes/models/FrmProEntry.php

Around line 320ish you'll find this:
if ( is_array($taxonomy) )
$tags = array_keys($tags);

Change the first line to:
if ( is_taxonomy_hierarchical($taxonomy) )

I found it on line 309 and changed it. I duplicated the issue and it is still a problem. Is there a way within formidable to "populate" checkboxes with categories?

It looks like this is a duplicate of your previous post.
http://formidablepro.com/help-desk/editing-a-post-resets-my-category/

Can you please provide access info there?

My apologies, I thought I didn't publish that one. I'll go there and give you the login details.

Since this topic is public, I'll post the fix here as well. This will be included in the next release.

Change lines 293-296 in formidable/classes/helpers/FrmFieldsHelper.php from:

$selected = is_array($field['value']) ? reset($field['value']) : $field['value'];
$exclude = (is_array($field['exclude_cat'])) ? implode(',', $field['exclude_cat']) : $field['exclude_cat'];
$exclude = apply_filters('frm_exclude_cats', $exclude, $field);

to:

        $exclude = (is_array($field['exclude_cat'])) ? implode(',', $field['exclude_cat']) : $field['exclude_cat'];
        $exclude = apply_filters('frm_exclude_cats', $exclude, $field);
        
        if(is_array($field['value'])){
            if(!empty($exclude))
                $field['value'] = array_diff($field['value'], explode(',', $exclude));
            $selected = reset($field['value']);
        }else{
            $selected = $field['value'];
        }  

Thank you very much! Works perfectly now. Your support is over the top!

Topic closed.