File bug-291785_def_val_protocol.patch of Package yast2-drbd

diff -ru yast2-drbd-2.13.1.ori/src/resource_conf.ycp yast2-drbd-2.13.1/src/resource_conf.ycp
--- yast2-drbd-2.13.1.ori/src/resource_conf.ycp	2007-04-26 15:37:07.000000000 +0800
+++ yast2-drbd-2.13.1/src/resource_conf.ycp	2007-07-19 18:01:22.000000000 +0800
@@ -271,6 +271,10 @@
 		"rate"       : (string) UI::QueryWidget(`id(`rate), `Value)
 	];
 
+	if (res_config["protocol"]:nil == nil) res_config["protocol"] = "C";
+	if (res_config["disk", "on-io-error"]:nil == nil) res_config["disk", "on-io-error"] = "pass_on";
+	if (res_config["net", "on-disconnect"]:nil == nil) res_config["net", "on-disconnect"] = "reconnect";
+
 	return res_config;
 }
 
@@ -384,10 +388,8 @@
 
 		if (ret == `ok)
 		{
-			if (cur_page == `basic)
-				res_config = save_basic_config(res_config);
-			if (cur_page == `advance)
-				res_config = save_advance_config(res_config);
+			res_config = save_basic_config(res_config);
+			res_config = save_advance_config(res_config);
 
 			res_config = (map<string, any>) del_empty_item(res_config);
 			y2milestone("mcdebug del_empty+item=%1", res_config);