HEX
Server: Apache
System: Linux WWW 6.1.0-40-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.153-1 (2025-09-20) x86_64
User: web11 (1011)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: /var/www/apklausos/application/extensions/GeneralOptionWidget/views/questiongroup.php
<select
    class="form-select"
    name="question[<?= $this->generalOption->name ?>]"
    id="<?= CHtml::getIdByName($this->generalOption->name) ?>"
    <?= ($this->generalOption->formElement->help) ? 'aria-describedby="help-' . CHtml::getIdByName($this->generalOption->name) . '"' : "" ?>
    <?= $this->generalOption->disabled ? 'disabled' : '' ?>
>
    <!-- TODO: Fix weird object reference. -->
    <?php foreach ($this->generalOption->formElement->options['options'] as $option) : ?>
        <?php if ($this->generalOption->formElement->value == $option->value) : ?>
            <option value="<?= CHtml::encode($option->value) ?>" selected="selected"><?= $option->text ?></option>
        <?php else : ?>
            <option value="<?= CHtml::encode($option->value) ?>"><?= $option->text ?></option>
        <?php endif; ?>
    <?php endforeach; ?>
</select>