Skip to content
Snippets Groups Projects
Commit da848921 authored by Gábor Hojtsy's avatar Gábor Hojtsy
Browse files

#323528 by halcyonCorsair, jhedstrom, Damien Tournoud, andypost: UPDATE...

#323528 by halcyonCorsair, jhedstrom, Damien Tournoud, andypost: UPDATE queries should not use table name aliases for pgsql compatibility
parent a8b801b0
No related branches found
No related tags found
No related merge requests found
......@@ -919,7 +919,7 @@ function taxonomy_vocabulary_confirm_reset_alphabetical(&$form_state, $vid) {
* @see taxonomy_vocabulary_confirm_reset_alphabetical()
*/
function taxonomy_vocabulary_confirm_reset_alphabetical_submit($form, &$form_state) {
db_query('UPDATE {term_data} t SET weight = 0 WHERE vid = %d', $form_state['values']['vid']);
db_query('UPDATE {term_data} SET weight = 0 WHERE vid = %d', $form_state['values']['vid']);
drupal_set_message(t('Reset vocabulary %name to alphabetical order.', array('%name' => $form_state['values']['name'])));
watchdog('taxonomy', 'Reset vocabulary %name to alphabetical order.', array('%name' => $form_state['values']['name']), WATCHDOG_NOTICE);
$form_state['redirect'] = 'admin/content/taxonomy/'. $form_state['values']['vid'];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment