[Mpuls-commits] r5465 - jmd/trunk

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Thu Oct 13 18:19:52 CEST 2011


Author: bh
Date: 2011-10-13 18:19:52 +0200 (Thu, 13 Oct 2011)
New Revision: 5465

Modified:
   jmd/trunk/jmd.json
Log:
Remove the defaults for the gender search option.
The default value of the base should be correct for JMD as well.

Also, and more importantly, the value used in JMD was a list of ints,
not an int as required by the search code. This actually did lead to
incorrect behavior because in the generated HTML of the case overview
page, all options of the gender select element were marked as selected,
so that at least the firefox I was using showed and used the last option
("keine Angabe") as the selected option instead of "all" like in all
other mpuls applications that support gender search.

After this change, JMD will also show "all" as the default value.


Modified: jmd/trunk/jmd.json
===================================================================
--- jmd/trunk/jmd.json	2011-10-13 13:39:42 UTC (rev 5464)
+++ jmd/trunk/jmd.json	2011-10-13 16:19:52 UTC (rev 5465)
@@ -57,8 +57,7 @@
 			 "editor": -1,
 			 "state": [3, 4], 
 			 "phase": [-1, 0, 1, 2],
-			 "type_ending": [-3, -1, 0, 1],
-			 "gender": [-2, -1, 0, 1]
+			 "type_ending": [-3, -1, 0, 1]
 			}
 		],
 		"cm_defaults": [
@@ -67,8 +66,7 @@
 			 "search_str": "", 
 			 "state": [1], 
 			 "phase": [-1, 0, 1, 2],
-			 "type_ending": [-3, -1, 0, 1],
-			 "gender": [-2, -1, 0, 1]
+			 "type_ending": [-3, -1, 0, 1]
 			}
 		]
 	},



More information about the Mpuls-commits mailing list