Commit 50bf1399 authored by Dries's avatar Dries

- Fixed bug #11405: unchecking the "publish" box in the default workflow admin...

- 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".
parent 489903fd
......@@ -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
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment