-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fields with default values always show on user profiles #8
Comments
@aturling - thanks for noticing this. You are correct that some fields in this display are unnecessary and should not be shown by default. I adjusted the user profile tab at the dev site according to @aturling 's suggestions. Is this ok? If so, I can simply export the modified user profile tab to 3.1-dev branch. |
Regarding showing confusing info to users: on our site I have noticed Kia On 03/11/2015 06:53 PM, Chris Allen wrote:
|
I will bring this up to the Admin group but I think this would be a relevant update to ER Core. Isis |
I ended up hiding the status tab for non-admins by changing the line in er.module under the $items['user/%/status'] array to: |
Thanks all. I committed two things:
Those commits are at the 3.1-dev branch https://github.com/EPSCoR/ERCore-3.0/commits/3.1-dev |
I played around with this today and found another fix that doesn't require hiding the fields. It took a couple of steps:
This might be overkill though since hiding the fields does the job, but I'll leave this here in case anyone wants to try it. Also it only works for new users; the fields will show for current users until the database is manually edited to remove the rows from the various tables. |
I noticed today that fields with default values are displaying on user profiles even if they don't apply to the user. For example, I created a new user from an admin account, entering only the user's first name, last name, and password. Then I logged in as that user and even without touching the "edit" tab on the profile, I see:
[Demographics tab]
Disabilities: None
I am not a veteran.
[EPSCoR Involvement tab]
I am not on the Missouri EPSCoR Executive Team.
I have not completed the RCR training.
[Data Collection tab]
I do not plan to be collecting data through my research.
Data Frequency: One time
I have not been put in touch with the Data Manager.
Also I'm seeing this with existing users. Non-students are seeing "I have not completed the RCR training" because they weren't given the option to select anything other than the default value. Until I removed the default value for "Do you or anyone in your research group receive salary support from EPSCoR?", non-faculty users were seeing "Nobody in my research group receives salary support from EPSCoR" on their profiles.
I have two issues related to this:
I was able to remove default values for all fields other than on/off checkboxes. The on/off checkboxes are the fields remaining (Veteran status, RCR training, data frequency, etc.) I don't know how to specify "no default value" for on/off checkboxes because there doesn't seem to be an option for it. It's confusing users because non-students shouldn't see "I have not completed the RCR training." Also, users who select "I do not plan to be collecting data through my research" shouldn't see "Data Frequency: One time."
I removed default values for other fields, and now these fields don't display for new accounts, but they're still displaying for all accounts created before I removed the default values. Do I need to manually edit the database to fix this?
The text was updated successfully, but these errors were encountered: