From 306a04e5032996f64eaa4fe6490c67a1e689ba80 Mon Sep 17 00:00:00 2001
From: Gerhard Killesreiter <killes_www_drop_org@227.no-reply.drupal.org>
Date: Thu, 9 Mar 2006 22:10:57 +0000
Subject: [PATCH] #43032, Can't move forum topics created by anonymous
 (Authored by not set), patch by Cvbge.

---
 modules/node.module      | 2 +-
 modules/node/node.module | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/node.module b/modules/node.module
index 0d023bd88c63..ee652ae065e8 100644
--- a/modules/node.module
+++ b/modules/node.module
@@ -1717,7 +1717,7 @@ function node_form_array($node) {
   if (user_access('administer nodes')) {
     // Node author information
     $form['author'] = array('#type' => 'fieldset', '#title' => t('Authoring information'), '#collapsible' => TRUE, '#collapsed' => TRUE, '#weight' => 20);
-    $form['author']['name'] = array('#type' => 'textfield', '#title' => t('Authored by'), '#maxlength' => 60, '#autocomplete_path' => 'user/autocomplete', '#required' => TRUE, '#default_value' => $node->name ? $node->name : variable_get('anonymous', 'Anonymous'), '#weight' => -1);
+    $form['author']['name'] = array('#type' => 'textfield', '#title' => t('Authored by'), '#maxlength' => 60, '#autocomplete_path' => 'user/autocomplete', '#default_value' => $node->name ? $node->name : '', '#weight' => -1, '#description' => t('Leave blank for %anonymous.', array('%anonymous' => theme('placeholder', variable_get('anonymous', 'Anonymous')))));
     $form['author']['date'] = array('#type' => 'textfield', '#title' => t('Authored on'), '#maxlength' => 25, '#required' => TRUE, '#default_value' => $node->date);
 
     // Node options for administrators
diff --git a/modules/node/node.module b/modules/node/node.module
index 0d023bd88c63..ee652ae065e8 100644
--- a/modules/node/node.module
+++ b/modules/node/node.module
@@ -1717,7 +1717,7 @@ function node_form_array($node) {
   if (user_access('administer nodes')) {
     // Node author information
     $form['author'] = array('#type' => 'fieldset', '#title' => t('Authoring information'), '#collapsible' => TRUE, '#collapsed' => TRUE, '#weight' => 20);
-    $form['author']['name'] = array('#type' => 'textfield', '#title' => t('Authored by'), '#maxlength' => 60, '#autocomplete_path' => 'user/autocomplete', '#required' => TRUE, '#default_value' => $node->name ? $node->name : variable_get('anonymous', 'Anonymous'), '#weight' => -1);
+    $form['author']['name'] = array('#type' => 'textfield', '#title' => t('Authored by'), '#maxlength' => 60, '#autocomplete_path' => 'user/autocomplete', '#default_value' => $node->name ? $node->name : '', '#weight' => -1, '#description' => t('Leave blank for %anonymous.', array('%anonymous' => theme('placeholder', variable_get('anonymous', 'Anonymous')))));
     $form['author']['date'] = array('#type' => 'textfield', '#title' => t('Authored on'), '#maxlength' => 25, '#required' => TRUE, '#default_value' => $node->date);
 
     // Node options for administrators
-- 
GitLab