fix(admin): repair email rollback and product taxonomy APIs
Call the existing Email_Rollback::list_pending method instead of the missing list_recent_changes method that caused /email-rollback/users to fatal. Add the product taxonomy route expected by ProductEditorDrawer and return category/tag options for the editor.
This commit is contained in:
1 parent
4612e90e44
commit
7c56afa376
3 files changed
+38
-1
No files matched your search
@@ -261,7 +261,7 @@ class AKSRT_Admin_Tools_Controller extends AKSRT_Admin_Controller_Base {
|
||||
|
||||
$page = max(1, (int) $request->get_param('page'));
|
||||
$per_page = min(100, max(1, (int) $request->get_param('per_page')));
|
||||
$data = AKSRT_Email_Rollback::list_recent_changes($page, $per_page);
|
||||
$data = AKSRT_Email_Rollback::list_pending($page, $per_page);
|
||||
|
||||
return $this->success(['data' => $data]);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user