* [bug#56721,done,0.5h] fix pri show diff error.

This commit is contained in:
tianshujie
2024-11-04 15:17:09 +08:00
committed by 刘梦艺
parent decb6b5d09
commit 36127fe283
+1 -1
View File
@@ -910,7 +910,7 @@ class commonModel extends model
$diff = '';
if(substr_count((string)$value, "\n") > 1 or
substr_count((string)$old->$key, "\n") > 1 or
strpos('name,title,desc,spec,steps,content,digest,verify,report,definition,analysis,summary,prevention,resolution,outline,schedule,minutes,sql,interface,ui,langs,performance,privileges,search,actions,deploy,bi,safe,other', strtolower($key)) !== false)
strpos(',name,title,desc,spec,steps,content,digest,verify,report,definition,analysis,summary,prevention,resolution,outline,schedule,minutes,sql,interface,ui,langs,performance,privileges,search,actions,deploy,bi,safe,other,', ',' . strtolower($key) . ',') !== false)
{
$diff = commonModel::diff((string)$old->$key, (string)$value);
}