Index: openacs-4/packages/acs-content-repository/sql/postgresql/content-item.sql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-content-repository/sql/postgresql/content-item.sql,v diff -u -r1.57 -r1.58 --- openacs-4/packages/acs-content-repository/sql/postgresql/content-item.sql 20 Jul 2004 15:19:27 -0000 1.57 +++ openacs-4/packages/acs-content-repository/sql/postgresql/content-item.sql 2 Aug 2004 13:40:38 -0000 1.58 @@ -653,9 +653,7 @@ v_title := new__title; end if; - -- create the revision if data or title or text is not null - -- note that the caller could theoretically specify both text - -- and data, in which case the text is ignored. + -- create the revision if data or title is not null if new__data is not null then @@ -674,6 +672,23 @@ v_package_id ); + elsif new__title is not null then + + v_revision_id := content_revision__new( + v_title, + new__description, + now(), + new__mime_type, + null, + null, + v_item_id, + null, + new__creation_date, + new__creation_user, + new__creation_ip, + v_package_id + ); + end if; -- make the revision live if is_live is true