[buddypress-trac] [BuddyPress Trac] #9035: [BP 12] On the profile "add new field" screen, the default field type "checkbox" is not initially showing the subsequent options

buddypress-trac noreply at wordpress.org
Wed Dec 13 19:30:49 UTC 2023


#9035: [BP 12] On the profile "add new field" screen, the default field type
"checkbox" is not initially showing the subsequent options
------------------------------+---------------------
 Reporter:  strategio         |       Owner:  imath
     Type:  defect (bug)      |      Status:  closed
 Priority:  normal            |   Milestone:  12.1.0
Component:  Extended Profile  |     Version:  12.0.0
 Severity:  normal            |  Resolution:  fixed
 Keywords:  has-patch         |
------------------------------+---------------------
Changes (by imath):

 * owner:  (none) => imath
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"13669" 13669]:
 {{{
 #!CommitTicketReference repository="" revision="13669"
 xProfile Admin: use `textbox` as the default selected field type

 In [13414] the `BP_XProfile_Field::$type` variable default value was set
 to `''` to prevent PHP deprecation notices. This move generated a side
 effect on the selected default field of the select box used to define a
 new xProfile field type.

 Instead of having the `textbox` field type selected by default, the
 `checkbox` was used. The downside of this is: this field type, unlike the
 `textbox` one, needs a meta box to define option values which was not
 displayed. This meta box is only displayed using JavaScript when the
 selected value of the Field type select box has changed.

 Props strategio

 Fixes #9035 (branch 12.0)
 }}}

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/9035#comment:7>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list