Skip to content

Commit 6dfea2b

Browse files
committed
Troubleshoot why update is not returning
1 parent 7586d92 commit 6dfea2b

1 file changed

Lines changed: 19 additions & 1 deletion

File tree

src/Mvc/Controller/AIErrorCorrectionConfigController.php

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,24 @@ public function hook_init() {
2626
$this->getFKTables = true;
2727
}
2828

29+
/**
30+
* Helper method to return success response
31+
*/
32+
private function success($data) {
33+
$this->response['success'] = true;
34+
$this->response['data'] = $data;
35+
return;
36+
}
37+
38+
/**
39+
* Helper method to return error response
40+
*/
41+
private function error($message) {
42+
$this->response['success'] = false;
43+
$this->response['error'] = $message;
44+
return;
45+
}
46+
2947
/**
3048
* Override get() to handle GET custom actions
3149
*
@@ -53,7 +71,7 @@ public function update($field, $value, $data)
5371
{
5472
$action = $field;
5573
$configId = $value;
56-
74+
error_log("*********** $action , $configId ");
5775
if ($action && $configId) {
5876
switch ($action) {
5977
case 'enable':

0 commit comments

Comments
 (0)