Closed (outdated)
Project:
Drupal core
Version:
7.x-dev
Component:
profile.module
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
27 Mar 2007 at 19:58 UTC
Updated:
23 Jun 2015 at 01:00 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
tostinni commentedIn fact this a little worse than that, it doesn't accept 0 at all.
The problem is in code like this:
When line equal 0, we have if (0) which is FALSE so this value is omitted. Should we write:
I'm not sure on how to correct this (with clean code I mean).
Comment #2
Anonymous (not verified) commentedThe same problem if you want to accept an empty string.
I want the first line to accept an empty string. This is specially usefull for required fields.
I want the user to select a value when it is a required field. Now the first value is automatically selected which is not correct.
Comment #3
LAsan commentedAny news about this?
Comment #4
clarkburbidge commentedI have just run into this issue on 6.8 using the profiles module. I need to have the number zero be an option for a select list. When I go to the user profile, the zero is not an option and the options in the select list starts with the number 1.
Comment #5
damien tournoud commentedThis looks like a confirmed bug. Any solution will need to go in 7.x first, before being backported to any other affected versions.
Comment #7
dawehnerwhat about a wrapper called
or just call trim with the changed charlist, but i guess there a quite some places, where "0" should be displayed too
Comment #8
sun.core commentedThat faulty status made each and everyone skip this issue.
Comment #9
Alex Savin commentedI ran into this bug too and I think it should be a critical one because it really takes you the ability to insert values into a certain profile field. The problem occurs even if the type of field is textfield.
Comment #10
Alex Savin commentedFor me at least, the attached patch did the job.
Comment #11
Alex Savin commentedI will have to correct this comment. It does insert the value "0" in the data base but it doesn't show it in any views because in the IF statement it's value is just passed like:
instead of
Comment #13
Alex Savin commentedThis should do the work hopefully.
Comment #14
Alex Savin commentedComment #15
Alex Savin commentedComment #16
Alex Savin commentedSorry for the repeated status changes and patch attach but I think now it is better.
Comment #17
thedavidmeister commentedAs per #5, any fix needs to go in the latest version of Drupal affected and then back-ported from there.
Comment #18
mgifford@thedavidmeister - any reason you didn't set this to 8.x?
Comment #19
Alex Savin commented@thedavidmeister I attached a rough patch for D7. If it passes the tests it should work fine.
Comment #20
dcam commented@mgifford
Profile was deprecated in 7.x and only included as an upgrade path from 6.x. It was removed in 8.x See https://www.drupal.org/node/874026.
Comment #21
dcam commentedI didn't notice that the last patch wasn't tested. Setting status.
Comment #22
mgiffordGood to know, thanks!
Comment #23
thedavidmeister commented@dcam is correct. There is no profile module in d8.
Comment #24
cilefen commentedI tried but I can't reproduce this on 7.x-dev as I understand it. Could someone update the issue summary with the steps to reproduce this on Drupal 7? According to the current issue summary there is a workaround, so is this is major priority according to the guide. To be critical it would "Render the system unusable and have no workaround", which is not the case.