Skip to content
Snippets Groups Projects
Commit af6c8970 authored by Neil Drumm's avatar Neil Drumm :wave:
Browse files

#65024 by killes, remove an extra condition.

parent a8119651
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -370,7 +370,7 @@ function forum_validate($node) { ...@@ -370,7 +370,7 @@ function forum_validate($node) {
* Implementation of hook_update(). * Implementation of hook_update().
*/ */
function forum_update($node) { function forum_update($node) {
if ($node->is_new || $node->revision) { if ($node->revision) {
db_query("INSERT INTO {forum} (nid, vid, tid) VALUES (%d, %d, %d)", $node->nid, $node->vid, $node->tid); db_query("INSERT INTO {forum} (nid, vid, tid) VALUES (%d, %d, %d)", $node->nid, $node->vid, $node->tid);
} }
else { else {
......
...@@ -370,7 +370,7 @@ function forum_validate($node) { ...@@ -370,7 +370,7 @@ function forum_validate($node) {
* Implementation of hook_update(). * Implementation of hook_update().
*/ */
function forum_update($node) { function forum_update($node) {
if ($node->is_new || $node->revision) { if ($node->revision) {
db_query("INSERT INTO {forum} (nid, vid, tid) VALUES (%d, %d, %d)", $node->nid, $node->vid, $node->tid); db_query("INSERT INTO {forum} (nid, vid, tid) VALUES (%d, %d, %d)", $node->nid, $node->vid, $node->tid);
} }
else { else {
......
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