Do you talk about the sitemapInclude part?
We only have yes and no these two options and the value of them are 1 
and 0.Therefore,when you're putting a value which is not 1 or 0,should 
not error appear?
Meanwhile,I can not understand when would it happen to can't enter 1 or 0.





On 2013/4/19 14:38, Samuel Kong wrote:
>
> In 
> portal-impl/src/com/liferay/portal/service/impl/LayoutLocalServiceImpl.java:
>
> > +		throws PortalException {
> > +
> > +		String sitemapPriority = typeSettingsProperties.getProperty(
> > +			"sitemap-priority");
> > +		String sitemapInclude = typeSettingsProperties.getProperty(
> > +			"sitemap-include");
> > +		String sitemapChangeFrequency = typeSettingsProperties.getProperty(
> > +			"sitemap-changefreq");
> > +
> > +		if (Validator.isNotNull(sitemapInclude) &&
> > +			!(sitemapInclude.equals("0") || sitemapInclude.equals("1"))) {
> > +				throw new InvalidSiteMapIncludeException();
> > +		}
> > +
> > +		if (Validator.isNotNull(sitemapPriority) &&
> > +			!sitemapPriority.matches("^\\d+\\.\\d+$") ||
>
> Seems like I can't enter |1| or |0| will cause an error.
>
> —
> Reply to this email directly or view it on GitHub 
> <https://github.com/samuelkong/liferay-portal/pull/278/files#r3868527>.
>