rebuild tags for whole studiengang / selection

refactor backend for multiaction rebuildTags
add phrases
refactor haederFilter
This commit is contained in:
ma0068
2026-07-22 14:11:07 +02:00
parent 1ae02d8ed8
commit a8dd995195
5 changed files with 278 additions and 8 deletions
+16 -5
View File
@@ -344,16 +344,27 @@ class Tag_Controller extends FHCAPI_Controller
public function rebuildTagsForTypeId()
{
$id = $this->input->post('id');
$ids = $this->input->post('ids');
$typeId = $this->input->post('typeId');
$semester = $this->input->post('sem');
$result = $this->taglib->rebuildTagsForTypeId($typeId, $id, $semester);
$idsSuccess = [];
$idsError = [];
$outputResult = [];
if (isError($result))
return error ('Error occurred during updateAutomatedTags');
foreach ($ids as $id)
{
$result = $this->taglib->rebuildTagsForTypeId($typeId, $id, $semester);
$this->terminateWithSuccess($result);
if (isError($result))
$idsError[] = $id;
else
$idsSuccess[] = $id;
$outputResult[] = $result;
}
$this->terminateWithSuccess([$outputResult, $idsSuccess, $idsError]);
}
private function _setAuthUID()