1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

[ticket/12115] Convert user occupation to a profile field

PHPBB3-12115
This commit is contained in:
Joas Schilling
2014-02-02 15:41:49 +01:00
parent 344baf9180
commit 3c640e57c5
17 changed files with 176 additions and 26 deletions

View File

@@ -954,6 +954,19 @@ if (!$get_info)
'where' => 'users.user_id <> -1',
),
array(
'target' => PROFILE_FIELDS_DATA_TABLE,
'primary' => 'users.user_id',
'query_first' => array(
array('target', $convert->truncate_statement . PROFILE_FIELDS_DATA_TABLE),
),
array('user_id', 'users.user_id', 'phpbb_user_id'),
array('pf_phpbb_occupation', 'users.user_occ', array('function1' => 'phpbb_set_encoding')),
'where' => 'users.user_id <> -1',
),
),
);
}