Index: openacs-4/packages/faq/www/admin/q_and_a-new-2.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/faq/www/admin/Attic/q_and_a-new-2.tcl,v diff -u -r1.5 -r1.6 --- openacs-4/packages/faq/www/admin/q_and_a-new-2.tcl 12 Sep 2013 20:29:36 -0000 1.5 +++ openacs-4/packages/faq/www/admin/q_and_a-new-2.tcl 27 Oct 2014 16:41:30 -0000 1.6 @@ -8,7 +8,7 @@ @creation-date 2000-10-25 } { - faq_id:integer,notnull,trim + faq_id:naturalnum,notnull,trim question:html,notnull,trim answer:html,notnull,trim entry_id:naturalnum,optional @@ -43,7 +43,7 @@ db_dml faq_update $sql_update_q_and_as - set sort_key [expr $old_sort_key + 1] + set sort_key [expr {$old_sort_key + 1}] set entry_id [db_nextval acs_object_id_seq] }