|
|
Choosing A Webhost: |
svn commit: r372873 - /lenya/trunk/src/java/org/apache/lenya/cms/site/useca: msg#00183cms.lenya.cvs
Author: josias Date: Fri Jan 27 07:19:59 2006 New Revision: 372873 URL: http://svn.apache.org/viewcvs?rev=372873&view=rev Log: fixed a bug with create new language version if the resource type has multiple samples (only need a sample if there is no initial document). Modified: lenya/trunk/src/java/org/apache/lenya/cms/site/usecases/Create.java Modified: lenya/trunk/src/java/org/apache/lenya/cms/site/usecases/Create.java URL: http://svn.apache.org/viewcvs/lenya/trunk/src/java/org/apache/lenya/cms/site/usecases/Create.java?rev=372873&r1=372872&r2=372873&view=diff ============================================================================== --- lenya/trunk/src/java/org/apache/lenya/cms/site/usecases/Create.java (original) +++ lenya/trunk/src/java/org/apache/lenya/cms/site/usecases/Create.java Fri Jan 27 07:19:59 2006 @@ -108,10 +108,12 @@ addErrorMessage("The navigation title is required."); } - List samples = (List) getParameter(SAMPLES); - String sample = getParameterAsString(SAMPLE); - if (samples != null && samples.size() > 1 && (sample == null || sample.equals(""))) { - addErrorMessage("Please select a page layout."); + if (getInitialDocument() == null) { + List samples = (List) getParameter(SAMPLES); + String sample = getParameterAsString(SAMPLE); + if (samples != null && samples.size() > 1 && (sample == null || sample.equals(""))) { + addErrorMessage("Please select a page layout."); + } } String doctypeName = getDocumentTypeName();
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | svn commit: r372870 - /lenya/trunk/src/pubs/default/java/src/org/apache/lenya/defaultpub/cms/publication/templating/Instantiator.java, andreas |
|---|---|
| Next by Date: | svn commit: r372891 - /lenya/trunk/src/pubs/default/config/ac/ac.xconf, andreas |
| Previous by Thread: | svn commit: r372870 - /lenya/trunk/src/pubs/default/java/src/org/apache/lenya/defaultpub/cms/publication/templating/Instantiator.java, andreas |
| Next by Thread: | svn commit: r372891 - /lenya/trunk/src/pubs/default/config/ac/ac.xconf, andreas |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |