Source
180
180
unset($_REQUEST['form']);
181
181
}
182
182
elseif (isset($_REQUEST['clone']) && isset($_REQUEST['httptestid'])) {
183
183
unset($_REQUEST['httptestid']);
184
184
unset($_REQUEST['templated']);
185
185
$_REQUEST['form'] = 'clone';
186
186
}
187
187
elseif (hasRequest('del_history') && hasRequest('httptestid')) {
188
188
$result = deleteHistoryByHttpTestIds([getRequest('httptestid')]);
189
189
190
-
show_messages($result, _('History cleared'), _('Cannot clear history'));
190
+
show_messages($result, _('History and trends cleared'), _('Cannot clear history and trends'));
191
191
}
192
192
elseif (hasRequest('add') || hasRequest('update')) {
193
193
if (hasRequest('update')) {
194
194
$messageTrue = _('Web scenario updated');
195
195
$messageFalse = _('Cannot update web scenario');
196
196
}
197
197
else {
198
198
$messageTrue = _('Web scenario added');
199
199
$messageFalse = _('Cannot add web scenario');
200
200
}
396
396
}
397
397
elseif (hasRequest('action') && getRequest('action') === 'httptest.massclearhistory'
398
398
&& hasRequest('group_httptestid') && is_array(getRequest('group_httptestid'))
399
399
&& getRequest('group_httptestid')) {
400
400
$result = deleteHistoryByHttpTestIds(getRequest('group_httptestid'));
401
401
402
402
if ($result) {
403
403
uncheckTableRows(getRequest('hostid'));
404
404
}
405
405
406
-
show_messages($result, _('History cleared'), _('Cannot clear history'));
406
+
show_messages($result, _('History and trends cleared'), _('Cannot clear history and trends'));
407
407
}
408
408
elseif (hasRequest('action') && getRequest('action') === 'httptest.massdelete'
409
409
&& hasRequest('group_httptestid') && is_array(getRequest('group_httptestid'))) {
410
410
$result = API::HttpTest()->delete(getRequest('group_httptestid'));
411
411
412
412
if ($result) {
413
413
uncheckTableRows(getRequest('hostid'));
414
414
}
415
415
416
416
$web_scenarios_count = count(getRequest('group_httptestid'));