Index: openacs-4/packages/acs-templating/www/scripts/xinha/attach-file.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/scripts/xinha/attach-file.tcl,v diff -u -r1.18 -r1.19 --- openacs-4/packages/acs-templating/www/scripts/xinha/attach-file.tcl 27 Oct 2014 16:40:53 -0000 1.18 +++ openacs-4/packages/acs-templating/www/scripts/xinha/attach-file.tcl 7 Aug 2017 23:48:03 -0000 1.19 @@ -36,7 +36,7 @@ if {!$write_p} { # if parent_id does not exist yet, let's use the pacakage_id - if { ![db_0or1row "check_parent" "select object_id from acs_objects where object_id=:parent_id"] } { + if { ![db_0or1row check_parent {select object_id from acs_objects where object_id = :parent_id}] } { set parent_id $package_id } @@ -385,3 +385,9 @@ template::add_body_handler \ -event onload \ -script "attachFileInit()" + +# Local variables: +# mode: tcl +# tcl-indent-level: 4 +# indent-tabs-mode: nil +# End: