--- protected_node.module.orig	2008-08-01 15:46:43.000000000 +0200
+++ protected_node.module	2008-08-01 15:49:34.000000000 +0200
@@ -62,6 +62,10 @@
 			'#description' => t('Check here if this content should be protected by a password.'),
 			'#default_value' => $form['#node']->is_protected,
 		);		
+                $form['protected_node']['was_protected'] = array(
+                        '#type' => 'hidden',
+                        '#default_value' => $form['#node']->was_protected,
+                );              
 		$form['protected_node']['password'] = array(
 			'#type' => 'password_confirm',			
 			'#description' => t('Enter the node password here.'),
