MantisBT: master 3dcb7fde

Author Committer Branch Timestamp Parent
Paul Richards Paul Richards master 2014-08-30 16:03 master b2051e7f
Changeset

Fix error in install_update_history_long_custom_fields

The following code snippet:

$t_query = 'SELECT name FROM ' . db_get_table('custom_field');;
$t_result = db_query_bound( $t_query );
$t_field = db_fetch_array( $t_result ) ;
var_dump($t_field);

Returns:
array (size=1)
'name' => string 'Fixed in Release' (length=16)

i.e. $t_field[0] is always NULL.

Upgrade schema queries should reference the field name.

mod - core/install_helper_functions_api.php Diff File