summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2004-10-09 16:27:59 +0000
committerDries Buytaert <dries@buytaert.net>2004-10-09 16:27:59 +0000
commit50bf139960ce69d20ed0a73df52d8d718bf9c7d3 (patch)
treeead9321d219c5cae6da6cb3bdbb3bd8c406ca487
parent489903fd90df2fef7c049bba6147046b768b4a0f (diff)
downloadbrdo-50bf139960ce69d20ed0a73df52d8d718bf9c7d3.tar.gz
brdo-50bf139960ce69d20ed0a73df52d8d718bf9c7d3.tar.bz2
- Fixed bug #11405: unchecking the "publish" box in the default workflow admin page (admin/node/configure/defaults) did not cause the default workflow to change. This was caused by the fact that node_validate() forced the value of the status field to "1".
-rw-r--r--modules/node.module4
-rw-r--r--modules/node/node.module4
2 files changed, 0 insertions, 8 deletions
diff --git a/modules/node.module b/modules/node.module
index 27de41300..62f3345d1 100644
--- a/modules/node.module
+++ b/modules/node.module
@@ -1076,10 +1076,6 @@ function node_validate($node) {
$node->date = format_date($node->created, 'custom', 'Y-m-d H:i O');
}
- if (!is_numeric($node->status)) {
- $node->status = 1;
- }
-
// Validate the "authored by" field.
if (empty($node->name)) {
// The use of empty() is mandatory in the context of usernames
diff --git a/modules/node/node.module b/modules/node/node.module
index 27de41300..62f3345d1 100644
--- a/modules/node/node.module
+++ b/modules/node/node.module
@@ -1076,10 +1076,6 @@ function node_validate($node) {
$node->date = format_date($node->created, 'custom', 'Y-m-d H:i O');
}
- if (!is_numeric($node->status)) {
- $node->status = 1;
- }
-
// Validate the "authored by" field.
if (empty($node->name)) {
// The use of empty() is mandatory in the context of usernames