Skip to:
Content

BuddyPress.org

Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#5248 closed defect (bug) (fixed)

BuddyPress arbitrarily changes more than one xprofile field visibility settings

Reported by: sgr33n's profile sgr33n Owned by: boonebgorges's profile boonebgorges
Milestone: 1.9 Priority: normal
Severity: major Version:
Component: Extended Profile Keywords: reporter-feedback
Cc:

Description

Hi,

In more than one condition, saving a visibility setting for a single filed result in changing also another field.

In my buddypres theme developing configuration i have 3 fields: data, select and textfield. If i change the visibility for the last one (textfield), buddypress arbitrarily change also the datafield visibility, setting it at the same level of the textfield one.

Attachments (1)

buddypress_test_05.zip (87.1 KB) - added by sgr33n 10 years ago.
A brand new BuddyPress installation to reproduce the bug

Download all attachments as: .zip

Change History (9)

#1 @boonebgorges
10 years ago

  • Keywords reporter-feedback added

sgr33n - I can't reproduce this using the default templates, but then again I'm not totally sure I understand the report. With multiple profile fields, when I go to http://example.com/members/boone/profile/edit/group/1, I can change any of the visibility settings and it doesn't affect any of the others.

Can you share additional specific details? Also, can you share some info about your theme? Have you customized the members/single/profile/edit.php template file?

#2 @sgr33n
10 years ago

Hi boonebgorges :)

I tested it with a minimum installation and bp-legacy with TwentyThirteen theme.
To reproduce I guess you could just create 2 xprofile fields (to me happen with one datafield and one textfield), and change the textfield visibility (when the other is in the default visibility state).

Anyway there is a screencast, that for sure can explain better what happen :P

http://youtu.be/hnj1QTtCFzY

At first I set back the two fields to their default state (everyone), and I click on "Save". Then I change just the last field visibility (Citta) at 00:20, but, as you can see, then also the "Data di nascita" visibility changes to the same valu of "Citta" at 00:33.

Last edited 10 years ago by sgr33n (previous) (diff)

@sgr33n
10 years ago

A brand new BuddyPress installation to reproduce the bug

#3 @sgr33n
10 years ago

The one attached is a brand new BuddyPress installation (only WordPress & BuddyPress). Try to change the visibility for Location to reproduce che bug.

#4 @sgr33n
10 years ago

Hey boonebgorges, have you tried this? I confirm that it's still happening on a clean BuddyPress installation.

#5 @boonebgorges
10 years ago

  • Component changed from Core to XProfile
  • Severity changed from normal to major

Hey boonebgorges, have you tried this? I confirm that it's still happening on a clean BuddyPress installation.

As you can see, there have been no updates to the ticket :-D

I just took a look and I managed to find the problem. A fix is incoming.

#6 @boonebgorges
10 years ago

  • Milestone changed from Awaiting Review to 1.9

#7 @boonebgorges
10 years ago

  • Owner set to boonebgorges
  • Resolution set to fixed
  • Status changed from new to closed

In 7617:

Make field visibility settings option ids unique

The 'id' attribute of xprofile visibility settings options was being
concatenated in such a way that there were sometimes conflicts between
different fields. Besides being bad practice, this also caused occasional
problems where changing one field's setting would inadvertently change
another's, due to browser behavior regarding duplicate ids.

Fixes #5248

#8 @sgr33n
10 years ago

You're right :p lol

Good! :)

Note: See TracTickets for help on using tickets.