Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## [Unreleased]

### Fixed

- Remove redundant variable initialization in the question type AJAX controller

## [1.25.1] - 2026-10-28

### Added
Expand Down
3 changes: 0 additions & 3 deletions src/Controller/QuestionTypeAjaxController.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,6 @@ public function __invoke(Request $request): Response

// Get available fields for the selected block
$available_fields = PluginFieldsQuestionType::getFieldsFromBlock((int) $block_id);

// If field_id is not provided or invalid, use the first available field
$current_field_id = null;
if ($field_id && is_numeric($field_id) && isset($available_fields[$field_id])) {
$current_field_id = (int) $field_id;
} else {
Expand Down
Loading