Bug tracker
Update from 3.0.5 to 3.0.6RC2 drops cpf setting display on viewtopic (fix completed in vcs)
I have recently updated a board from 3.0.5 to 3.0.6RC2 and found that custom profile fields no longer where displayed in viewtopic.
For some reason this setting:
"Display on viewtopic screen:
If this option is enabled, the field will be displayed in the mini-profile on the topic screen."
is changed from yes to no when updating from 3.0.5 to 3.0.6RC2.
If you update from 3.0.5 to 3.0.6RC1 and then to 3.0.6RC2 there is no problems.
Comments / History
phpBB3.0.6-RC2/install/database_update.php
- Code: Select all
PROFILE_FIELDS_TABLE => array( 'field_show_on_vt' => array('BOOL', 0),
),
That may cause current custom profile fields disappear in topic pages, so may need to configure viewtopic option at ACP again, after 3.0.6 update.
I believe, while field_show_on_vt default value is set to 0 in new custom profile fields, phpBB3 versions older than 3.0.6 should get that data value set to 1 during database update to 3.0.6
I used the automatic updater.
Board version is showing correct under general and system tab.
The screen we get after database is updated showed no errors.
So I am quite sure the DB is updated.
I am not alone with this problem: viewtopic.php?f=46&t=1796835
Its no big deal anyway.
Now for my little screw up.
I did have the same problem on the other board.
I just didnt notice
- Code: Select all
// Update the Custom Profile Fields based on previous settings to the new format
$sql = 'SELECT field_id, field_required, field_show_on_reg, field_show_profile, field_hide
FROM ' . PROFILE_FIELDS_TABLE;
$result = _sql($sql, $errored, $error_ary);
while ($row = $db->sql_fetchrow($result))
{
if ($row['field_required'] || $row['field_show_on_reg'] || $row['field_show_profile'])
{
_sql('UPDATE ' . PROFILE_FIELDS_TABLE . ' SET field_show_on_vt WHERE field_id = ' . (int) $row['field_id'], $errored, $error_ary);
$no_updates = false;
}
}
$db->sql_freeresult($result);