NetCMS 1.7版本使用存在两个BUG
1.在上传文件时如果勾选“如果文件存在则重命名(格式:月日时5位随机数-原文件),否则将覆盖原文件.”上传的文件路径将错误。
BUG所在,NetCMS.Content.Common.UpLoad 类的120行,postedFile.SaveAs(SavePath + @"" + _tmps); 恩,找到了,错误就在这里。
找到了错误所在,那解决的方法也就自然知道了,把代码修改成 postedFile.SaveAs(SavePath + @"\\" + _tmps); 问题就解决了。
2. 在使用终极类的方式来显示文章列表时候已经丢进回收站的文章在这里却依然能看见,可是点击却无法阅读
BUG所在, NetCMS.Publish.LabelMass 分四个文件,BUG所在文件LabelMass_Method4.cs的2316行
<!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />-->
getWhere
+=
"
and ClassID='
"
+
this
.Param_CurrentClassID
+
"
'
"
;
if (str_isSub == " true " )
{
getWhere += " and ClassID in ( " + getChildClassID( this .Param_CurrentClassID) + " ) " ;
}
if (str_isSub == " true " )
{
getWhere += " and ClassID in ( " + getChildClassID( this .Param_CurrentClassID) + " ) " ;
}
问题就在这里,当有要显示子类中文章的时候根据条件拼出的条件就会出问题,具体不多说,直接修改成如下就可以解决问题
<!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />-->
getWhere
+=
"
and (ClassID='
"
+
this
.Param_CurrentClassID
+
"
'
"
;
if (str_isSub == " true " )
{
getWhere += " and ClassID in ( " + getChildClassID( this .Param_CurrentClassID) + " ) " ;
}
getWhere += " ) " ;
if (str_isSub == " true " )
{
getWhere += " and ClassID in ( " + getChildClassID( this .Param_CurrentClassID) + " ) " ;
}
getWhere += " ) " ;