fixing bug # 52
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 4 Jan 2006 20:40:39 +0000 (20:40 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 4 Jan 2006 20:40:39 +0000 (20:40 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@2604 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/reporter/templates/stage2.ttk

index 6535509..6dff0fe 100644 (file)
@@ -511,7 +511,11 @@ BLOCK run_stage2;
                        WRAPPER html/row;
                                WRAPPER html/cell align='left' style="padding-left: 50px;";
                                        INCLUDE checkbox
-                                               checked=(report.output.$classname.$pid == 'include' ? 'checked' : '')
+                                               checked=(
+                                                       !report || report.output.$classname.$pid == 'include'
+                                                               ? 'checked'
+                                                               : ''
+                                               )
                                                name="output:$classname:$pid"
                                                value="include"
                                                onclick="field_add_remove(this)";