Skip to:
Content

BuddyPress.org

Changeset 7563


Ignore:
Timestamp:
11/12/2013 04:10:21 PM (13 years ago)
Author:
boonebgorges
Message:

Ensure that xprofile fields have a default can_delete value of 1.

[7419] fixed a long-standing bug that prevented the can_delete value from being
saved when creating/editing an xprofile field. However, it uncovered a new bug,
which is that new xprofile fields were being created without specifying that
the default value of can_delete should be 1. As a result, all new fields
were being created as non-deletable (and, in fact, non-editable; see #5237 for
more details).

See #5237

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-xprofile/bp-xprofile-classes.php

    r7512 r7563  
    435435        public $description;
    436436        public $is_required;
    437         public $can_delete;
     437        public $can_delete = '1';
    438438        public $field_order;
    439439        public $option_order;
Note: See TracChangeset for help on using the changeset viewer.