Skip to content

taxonomy_select none option fix#477

Merged
jtsternberg merged 1 commit into
CMB2:trunkfrom
adamcapriola:trunk
Oct 1, 2015
Merged

taxonomy_select none option fix#477
jtsternberg merged 1 commit into
CMB2:trunkfrom
adamcapriola:trunk

Conversation

@adamcapriola

Copy link
Copy Markdown
Contributor

I have a taxonomy with numeric terms — 0, 1, 2, 3, etc... — and the taxonomy_select option output was looking like this:

<option value="" selected="selected">None</option>
<option value="0" selected="selected">0</option>
<option value="1">1</option>

Doing a strict comparison seems to fix the issue and only None gets selected. I can then select the 0 value and it is saved and selected correctly too.

jtsternberg added a commit that referenced this pull request Oct 1, 2015
taxonomy_select none option fix
@jtsternberg jtsternberg merged commit 61ebdff into CMB2:trunk Oct 1, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants