Index: openacs-4/packages/xowiki/www/ckeditor-images/thumb-view.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/www/ckeditor-images/thumb-view.tcl,v diff -u -r1.4 -r1.5 --- openacs-4/packages/xowiki/www/ckeditor-images/thumb-view.tcl 13 Sep 2012 16:05:34 -0000 1.4 +++ openacs-4/packages/xowiki/www/ckeditor-images/thumb-view.tcl 27 Oct 2014 16:42:07 -0000 1.5 @@ -1,10 +1,10 @@ ad_page_contract { } { - {parent_id ""} + {parent_id:naturalnum ""} } -validate { parent_id_exists -requires {parent_id} { - if {[db_0or1row object_exists "select item_id from cr_items where item_id =:parent_id"] == 0} { + if {[xo::dc 0or1row object_exists "select item_id from cr_items where item_id =:parent_id"] == 0} { #ad_complain "Das angegebene Objekt existiert nicht." } }