mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
N°2039 - Fix some issues with content type, bg task and typos
This commit is contained in:
@@ -155,7 +155,7 @@
|
||||
public function DoExecute($oTrigger, $aContextArgs)
|
||||
{
|
||||
$oRecipientsSearch = DBObjectSearch::FromOQL($this->Get('recipients'));
|
||||
$oRecipientsSearch->AllowAllDate();
|
||||
$oRecipientsSearch->AllowAllData();
|
||||
$oRecipientsSet = new DBObjectSet($oRecipientsSearch);
|
||||
[$sPreviousLanguage, $aPreviousPluginProperties] = $this->SetNotificationLanguage();
|
||||
while ($oRecipient = $oRecipientsSet->Fetch()) {
|
||||
|
||||
@@ -34,7 +34,7 @@ class iTopNewsroomController extends Controller
|
||||
}
|
||||
|
||||
/**
|
||||
* @return \AjaxPage
|
||||
* @return \JsonPPage
|
||||
* @throws \ArchivedObjectException
|
||||
* @throws \CoreException
|
||||
* @throws \CoreUnexpectedValue
|
||||
@@ -44,7 +44,7 @@ class iTopNewsroomController extends Controller
|
||||
public function OperationFetchUnreadMessages()
|
||||
{
|
||||
$sCallback = utils::ReadParam('callback', '');
|
||||
$oPage = new AjaxPage('');
|
||||
$oPage = new JsonPPage($sCallback);
|
||||
|
||||
$aMessages = [];
|
||||
$iContactId = UserRights::GetContactId();
|
||||
@@ -78,10 +78,8 @@ HTML;
|
||||
}
|
||||
|
||||
}
|
||||
$sOutput = $sCallback . '(' . json_encode($aMessages) . ')';
|
||||
echo $sOutput;
|
||||
$oPage->SetContentType('application/jsonp');
|
||||
$oPage->SetAddJSDict(false);
|
||||
$oPage->SetData($aMessages);
|
||||
$oPage->SetOutputDataOnly(true);
|
||||
return $oPage;
|
||||
}
|
||||
|
||||
|
||||
@@ -44,10 +44,11 @@ if (!file_exists($sConfigFile))
|
||||
|
||||
require_once(APPROOT.'/application/startup.inc.php');
|
||||
|
||||
//temporary fix until below bug is resolvedd properly:
|
||||
// Temporary fix until below bug is resolved properly:
|
||||
// N°7008 - Fix missing background tasks in CRON when NOT in "developer_mode"
|
||||
require_once(APPROOT.'/sources/SessionTracker/SessionGC.php');
|
||||
require_once(APPROOT.'/sources/Service/TemporaryObjects/TemporaryObjectGC.php');
|
||||
require_once(APPROOT.'/sources/Service/Notification/Event/EventiTopNotificationGC.php');
|
||||
|
||||
$oCtx = new ContextTag(ContextTag::TAG_CRON);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user