mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
add error message, by error saving error message in state errors
This commit is contained in:
parent
406dc13412
commit
41fe1cabe2
@ -248,10 +248,14 @@ class JsonRequestHandlerController extends AppController {
|
||||
$stateErrorEntity->transaction_type_id = $transaction->getTransactionBody()->getTransactionTypeId();
|
||||
$stateErrorEntity->message_json = $json;
|
||||
$stateErrorsTable->save($stateErrorEntity);
|
||||
} else {
|
||||
$errorArray['user_error'] = "user with $pub not found";
|
||||
$json = json_encode($errorArray);
|
||||
}
|
||||
|
||||
return $this->returnJsonEncoded($json);
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user