Source
304
304
]);
305
305
306
306
if ($result) {
307
307
CMessageHelper::setSuccessTitle(_('Graph prototype updated'));
308
308
}
309
309
else {
310
310
CMessageHelper::setErrorTitle(_('Cannot update graph prototype'));
311
311
}
312
312
313
313
if (hasRequest('backurl')) {
314
-
$response = new CControllerResponseRedirect(getRequest('backurl'));
314
+
$response = new CControllerResponseRedirect(new CUrl(getRequest('backurl')));
315
315
$response->redirect();
316
316
}
317
317
}
318
318
elseif (hasRequest('action') && getRequest('action') === 'graph.massdelete' && hasRequest('group_graphid')) {
319
319
$graphIds = getRequest('group_graphid');
320
320
321
321
if (hasRequest('parent_discoveryid')) {
322
322
$result = API::GraphPrototype()->delete($graphIds);
323
323
324
324
if ($result) {