Remove dead condition-editing code
The frontend condition create/edit path was never wired (no caller, no UI). Conditions stay live where used: the SurveyFlowService reads tl_survey_condition for jumps, the editor shows the read-only overview, and delete still works. Removed: - SurveyConditionEditorType (zero references) - SurveyEditorService::saveCondition() + its SurveyConditionData import - SurveyConditionData form model - SurveyConditionRepository::update() (only caller was saveCondition) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -72,17 +72,6 @@ final class SurveyConditionRepository
|
||||
return $this->findById($id) ?? throw new \RuntimeException('Bedingung konnte nicht angelegt werden.');
|
||||
}
|
||||
|
||||
public function update(SurveyConditionModel $condition, array $data): void
|
||||
{
|
||||
$this->connection->update('tl_survey_condition', [
|
||||
'sourceQuestion' => (int) ($data['sourceQuestion'] ?? $condition->sourceQuestion),
|
||||
'answerValue' => mb_strtolower(trim((string) ($data['answerValue'] ?? $condition->answerValue))),
|
||||
'targetQuestion' => (int) ($data['targetQuestion'] ?? $condition->targetQuestion),
|
||||
], [
|
||||
'id' => (int) $condition->id,
|
||||
]);
|
||||
}
|
||||
|
||||
public function delete(int $surveyId, int $conditionId): void
|
||||
{
|
||||
$this->connection->delete('tl_survey_condition', [
|
||||
|
||||
Reference in New Issue
Block a user