automatic issue resolving:

- removed comments
- automatically added issue_id to params, output the id in error messages
This commit is contained in:
KarpAlex
2022-01-17 21:46:19 +01:00
parent 82dbe27112
commit de60770e74
13 changed files with 13 additions and 18 deletions
+1 -6
View File
@@ -85,7 +85,7 @@ class IssuesLib
* @param bool $force_predefined if true, only predefined (with entry in fehler table) external issues are added
* @return object success or error
*/
public function addExternalIssue($fehlercode_extern, $inhalt_extern, $person_id = null, $oe_kurzbz = null, $fehlertext_params = null/* $resolve_params = null*//*, $force_predefined = false*/)
public function addExternalIssue($fehlercode_extern, $inhalt_extern, $person_id = null, $oe_kurzbz = null, $fehlertext_params = null)
{
if (isEmptyString($fehlercode_extern))
return error("fehlercode_extern missing");
@@ -109,11 +109,6 @@ class IssuesLib
// if found, use the code
$fehlercode = $fehlerData->fehlercode;
}
/*elseif ($force_predefined === true)
{
// only added if predefined
return success("Keine Definition gefunden - Issue nicht hinzugefügt");
}*/
else
{
// if predefined error is not found, insert with fallback code