LP#1709698: no longer require descriptions in report templates
authorRogan Hamby <rogan.hamby@gmail.com>
Fri, 30 Nov 2018 19:34:04 +0000 (14:34 -0500)
committerChris Sharp <csharp@georgialibraries.org>
Fri, 8 Mar 2019 18:29:48 +0000 (13:29 -0500)
Signed-off-by: Rogan Hamby <rogan.hamby@gmail.com>
Signed-off-by: Jessica Woolford <jwoolford@biblio.org>
Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
Open-ILS/src/sql/Pg/reporter-schema.sql
Open-ILS/src/sql/Pg/upgrade/xxxx.schema.reporter.template.sql [new file with mode: 0644]
Open-ILS/src/templates/staff/reporter/t_edit_template.tt2

index 8d0897d..52f2f39 100644 (file)
@@ -66,7 +66,7 @@ CREATE TABLE reporter.template (
        owner           INT                             NOT NULL REFERENCES actor.usr (id) DEFERRABLE INITIALLY DEFERRED,
        create_time     TIMESTAMP WITH TIME ZONE        NOT NULL DEFAULT NOW(),
        name            TEXT                            NOT NULL,
-       description     TEXT                            NOT NULL,
+       description     TEXT                            NOT NULL DEFAULT '',
        data            TEXT                            NOT NULL,
        folder          INT                             NOT NULL REFERENCES reporter.template_folder (id) DEFERRABLE INITIALLY DEFERRED
 );
diff --git a/Open-ILS/src/sql/Pg/upgrade/xxxx.schema.reporter.template.sql b/Open-ILS/src/sql/Pg/upgrade/xxxx.schema.reporter.template.sql
new file mode 100644 (file)
index 0000000..819b562
--- /dev/null
@@ -0,0 +1,2 @@
+ALTER TABLE reporter.template ALTER COLUMN description SET DEFAULT '';
+
index fbb266d..cab7bd0 100644 (file)
@@ -21,7 +21,7 @@
     [% l('Template Description') %]
   </div>
   <div class="col-md-10">
-    <div><textarea class="form-control" ng-model="templateDescription" required/></div>
+    <div><textarea class="form-control" ng-model="templateDescription" /></div>
   </div>
 </div>