caffeinated/admin/new/tickets/Tickets_Admin_Page.core.php 1 location
|
@@ 264-277 (lines=14) @@
|
261 |
|
} |
262 |
|
} |
263 |
|
} |
264 |
|
} else { |
265 |
|
// grab single id and trash |
266 |
|
$TKT_ID = absint($this->_req_data['TKT_ID']); |
267 |
|
|
268 |
|
if ($trash) { |
269 |
|
if (! $TKT->delete_by_ID($TKT_ID)) { |
270 |
|
$success = 0; |
271 |
|
} |
272 |
|
} else { |
273 |
|
if (! $TKT->restore_by_ID($TKT_ID)) { |
274 |
|
$success = 0; |
275 |
|
} |
276 |
|
} |
277 |
|
} |
278 |
|
|
279 |
|
$action_desc = $trash ? 'moved to the trash' : 'restored'; |
280 |
|
$this->_redirect_after_action($success, 'Tickets', $action_desc, array()); |
caffeinated/admin/extend/events/Extend_Events_Admin_Page.core.php 1 location
|
@@ 1353-1363 (lines=11) @@
|
1350 |
|
$success = 0; |
1351 |
|
} |
1352 |
|
} |
1353 |
|
} else { |
1354 |
|
// grab single id and trash |
1355 |
|
$TKT_ID = absint($this->_req_data['TKT_ID']); |
1356 |
|
if ($trash) { |
1357 |
|
if (! $TKT->delete_by_ID($TKT_ID)) { |
1358 |
|
$success = 0; |
1359 |
|
} |
1360 |
|
} elseif (! $TKT->restore_by_ID($TKT_ID)) { |
1361 |
|
$success = 0; |
1362 |
|
} |
1363 |
|
} |
1364 |
|
$action_desc = $trash ? 'moved to the trash' : 'restored'; |
1365 |
|
$query_args = array( |
1366 |
|
'action' => 'ticket_list_table', |