From 50bf139960ce69d20ed0a73df52d8d718bf9c7d3 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sat, 9 Oct 2004 16:27:59 +0000 Subject: - 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". --- modules/node/node.module | 4 ---- 1 file changed, 4 deletions(-) (limited to 'modules/node') 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 -- cgit v1.2.3