Changeset 13797
- Timestamp:
- 04/20/2024 06:48:57 PM (12 months ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-xprofile/bp-xprofile-admin.php
r13668 r13797 349 349 * display for the xprofile admin setup screen. 350 350 */ 351 $signup_fields[ $_signup_field->id ] = bp_xprofile_admin_get_signup_field( $_signup_field, $signup_group , '');351 $signup_fields[ $_signup_field->id ] = bp_xprofile_admin_get_signup_field( $_signup_field, $signup_group ); 352 352 } 353 353 } -
trunk/src/bp-xprofile/classes/class-bp-xprofile-group.php
r13494 r13797 347 347 } 348 348 349 $signup_fields_order = bp_xprofile_get_signup_field_ids(); 350 349 351 // Pull field objects from the cache. 350 352 $fields = array(); 351 353 foreach ( $field_ids as $field_id ) { 352 if ( true === $r['signup_fields_only'] && ! in_array( $field_id, bp_xprofile_get_signup_field_ids(), true ) ) {354 if ( true === $r['signup_fields_only'] && ! in_array( $field_id, $signup_fields_order, true ) ) { 353 355 continue; 354 356 } -
trunk/tests/phpunit/testcases/xprofile/template.php
r13528 r13797 94 94 array( 95 95 'field_group_id' => $group_1, 96 'type' => 'textbox',97 'name' => 'InSignupForm1'96 'type' => 'textbox', 97 'name' => 'InSignupForm1' 98 98 ) 99 99 ); … … 105 105 array( 106 106 'field_group_id' => $group_2, 107 'type' => 'textbox',108 'name' => 'InSignupForm2'107 'type' => 'textbox', 108 'name' => 'InSignupForm2' 109 109 ) 110 110 ); … … 121 121 $this->assertSame( $expected_names, $names ); 122 122 123 // Confirm the fields are in the right order. 124 $this->assertSame( 'InSignupForm2', $group->fields[1]->name ); 125 $this->assertSame( 'InSignupForm1', $group->fields[2]->name ); 126 123 127 xprofile_delete_field_group( $group_1 ); 124 128 xprofile_delete_field_group( $group_2 ); … … 139 143 $g3 = self::factory()->xprofile_group->create(); 140 144 141 $field_in_1 =self::factory()->xprofile_field->create(145 self::factory()->xprofile_field->create( 142 146 [ 143 147 'field_group_id' => $g1, … … 147 151 ); 148 152 149 $field_in_2 =self::factory()->xprofile_field->create(153 self::factory()->xprofile_field->create( 150 154 [ 151 155 'field_group_id' => $g2,
Note: See TracChangeset
for help on using the changeset viewer.