Merge branch 'liyuchun_fixbug_7008' into 'master'

* Fix bug #7008.

See merge request easycorp/zentaopms!3071
This commit is contained in:
王怡栋
2022-04-24 06:41:59 +00:00
2 changed files with 3 additions and 1 deletions
+2 -1
View File
@@ -16,11 +16,12 @@ needPing = false;
$(function()
{
var windowBlur = false;
if(window.Notification)
if(window.Notification && Notification.permission == 'granted')
{
window.onblur = function(){windowBlur = true;}
window.onfocus = function(){windowBlur = false;}
}
setInterval(function()
{
$.get(createLink('message', 'ajaxGetMessage', "windowBlur=" + (windowBlur ? '1' : '0')), function(data)
+1
View File
@@ -1392,6 +1392,7 @@ class mrModel extends model
->where('t1.AType')->eq('mr')
->andWhere('t1.BType')->eq($objectType)
->andWhere('t1.BID')->eq($objectID)
->andWhere('t2.id')->ne(0)
->fetchPairs();
}