diff --git a/ccm-cms/sql/ccm-cms/default/upgrade/6.6.6-6.6.7/add_default_workflow.sql b/ccm-cms/sql/ccm-cms/default/upgrade/6.6.6-6.6.7/add_default_workflow.sql new file mode 100644 index 000000000..f28e1ab55 --- /dev/null +++ b/ccm-cms/sql/ccm-cms/default/upgrade/6.6.6-6.6.7/add_default_workflow.sql @@ -0,0 +1,22 @@ +-- +-- Copyright (C) 2012 Jens Pelzetter. All Rights Reserved. +-- +-- This library is free software; you can redistribute it and/or +-- modify it under the terms of the GNU Lesser General Public License +-- as published by the Free Software Foundation; either version 2.1 of +-- the License, or (at your option) any later version. +-- +-- This library is distributed in the hope that it will be useful, +-- but WITHOUT ANY WARRANTY; without even the implied warranty of +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +-- Lesser General Public License for more details. +-- +-- You should have received a copy of the GNU Lesser General Public +-- License along with this library; if not, write to the Free Software +-- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +-- +-- Adds the is_default column to the section_workflow_template_map table +-- + +ALTER TABLE section_workflow_template_map ADD COLUMN is_default character varying(1) DEFAULT '0'::character varying NOT NULL; +-- UPDATE section_workflow_template_map SET is_default = 'false'; \ No newline at end of file diff --git a/ccm-core/src/com/arsdigita/domain/ReflectionInstantiator.java b/ccm-core/src/com/arsdigita/domain/ReflectionInstantiator.java index 6d8a4b568..52028a9ff 100755 --- a/ccm-core/src/com/arsdigita/domain/ReflectionInstantiator.java +++ b/ccm-core/src/com/arsdigita/domain/ReflectionInstantiator.java @@ -78,7 +78,7 @@ public class ReflectionInstantiator extends DomainObjectInstantiator { SecurityException { Class javaClass = Class.forName(domainClassName); - m_constructor = javaClass.getConstructor(s_dataArgs); + m_constructor = javaClass.getConstructor(s_dataArgs); // We should add a check that the domain class is indeed // a subclass of DomainObject }