freaking1 / wordpress-custom-content-type-manager

Automatically exported from code.google.com/p/wordpress-custom-content-type-manager
0 stars 0 forks source link

dropdown field does not "remember" selections #543

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Please make sure you are including enough information to make this a valid
bug report: https://code.google.com/p/wordpress-custom-content-type-
manager/wiki/ReportingBugs

What steps will reproduce the problem? (Be *specific*)
1.I created a dropdown field
2.I chose a option in post and save it
3.When i have to re-edit the post my option is gone, i have to select it again.

What is the expected output?
It was expected that it memorized my 1st option

What do you see instead?

Does the problem continue if you disable all other plugins? (plugin
conflicts cause a LOT of problems, so please isolate the problem)

Please copy and paste the system information that appears in a yellow
textarea when you click on "Report a Bug" on any CCTM admin screen (this
includes the version of the
plugin, the version of PHP, the version of MySQL, a list of other active
plugins etc.):
*SYSTEM INFO* 
------------------------ 
Plugin Version: 0.9.7.11-pl
WordPress Version: 3.8.1
PHP Version: 5.4.24
MySQL Version: 5.5.36-log
Server OS: Linux
Language: 
------------------------ 
ACTIVE PLUGINS: 
 * Add Link to Facebook v.1.198 [http://wordpress.org/extend/plugins/add-link-to-facebook/]
 * Akismet v.2.5.9 [http://akismet.com/?return=true]
 * amr users v.3.7.1 [http://wpusersplugin.com/]
 * bbPress v.2.5.3 [http://bbpress.org]
 * BuddyPress Template Pack v.1.2.1 [http://wordpress.org/extend/plugins/bp-template-pack/]
 * BuddyPress v.1.9.1 [http://buddypress.org]
 * Bulk Delete v.4.4.2 [http://sudarmuthu.com/wordpress/bulk-delete]
 * Contact Form 7 v.3.6 [http://contactform7.com/]
 * FullThrottle Calendar v.1.2.9 [http://calendar-plugin.com/]
 * GD bbPress Attachments v.2.0 [http://www.dev4press.com/plugin/gd-bbpress-attachments/]
 * Google Analyticator v.6.4.7.3 [http://www.videousermanuals.com/google-analyticator/?utm_campaign=analyticator&utm_medium=plugin&utm_source=readme-txt]
 * PHP Code Widget v.2.2 [http://ottopress.com/wordpress-plugins/php-code-widget/]
 * Post Expirator v.2.1.1 [http://wordpress.org/extend/plugins/post-expirator/]
 * Post Snippets v.2.3.2 [http://johansteen.se/code/post-snippets/]
 * Post Type Switcher v.1.2 [http://wordpress.org/extend/post-type-switcher/]
 * Quick Page/Post Redirect Plugin v.5.0.3 [http://www.fischercreativemedia.com/wordpress-plugins/quick-pagepost-redirect-plugin/]
 * Revision Control v.2.3 [http://dd32.id.au/wordpress-plugins/revision-control/]
 * Shortcodes Ultimate v.4.4.4 [http://gndev.info/shortcodes-ultimate/]
 * Theme My Login v.6.2.3 [http://www.jfarthing.com/development/theme-my-login/]
 * Widgets on Pages v.0.0.12 [http://gingerbreaddesign.co.uk/wordpress/plugins/widgets-on-pages.php]
 * WP-Members v.2.8.10 [http://rocketgeek.com]
 * WP-Optimize v.1.6.1 [http://www.ruhanirabin.com/wp-optimize/]
 * Skitter Slideshow v.2.3.1 [http://thiagosf.net/projects/jquery/skitter]
------------------------ 
CURRENT THEME: Responsive v.1.8.8 http://themeid.com/responsive-theme/

Original issue reported on code.google.com by xba...@gmail.com on 13 Feb 2014 at 10:39

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by ever...@fireproofsocks.com on 13 Feb 2014 at 11:25

GoogleCodeExporter commented 9 years ago
Inside of fields/dropdown.php around line 226, the line should read like this:

if ( trim($current_value) == trim($this->values[$i]) ) {

The problem was that the stored values contained double-quotes and other html 
entities, and the selection attempted to compare a double quote (") with its 
html entity ("), so the value was never marked as selected.

You may need to re-save your values once more.

Committed revision 857558.

Original comment by ever...@fireproofsocks.com on 13 Feb 2014 at 11:45

GoogleCodeExporter commented 9 years ago
Works fine now

thank you

Original comment by xba...@gmail.com on 14 Feb 2014 at 8:31