Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ошибка гинерации префикса #27

Closed
fiamma06 opened this issue Aug 31, 2015 · 1 comment
Closed

Ошибка гинерации префикса #27

fiamma06 opened this issue Aug 31, 2015 · 1 comment
Assignees
Labels

Comments

@fiamma06
Copy link
Contributor

Инициализирую виджет:

<?= $form->field($model, 'phone')->widget(MultipleInput::class) ?>

При этом префикс создается не корректно:

<input type="text" id="representation-phone-phone-1" class="form-control" name="Representation[phone][phone][1]" value="asdfasdf">

Если я правильно понимаю результат должен быть:

<input type="text" id="representation-phone-1" class="form-control" name="Representation[phone][1]" value="asdfasdf">

Проблема наблюдается только в случае, если указывать (либо не указывать) один столбец.
Если указывать несколько столбцов, то все отрабатывает отлично.

Ошибка возникает во всех версия...

@unclead unclead self-assigned this Aug 31, 2015
@unclead unclead added the bug label Aug 31, 2015
@unclead
Copy link
Owner

unclead commented Aug 31, 2015

Исправлено в ревизии 7d045ba
Выпустил версию 1.2.1 с фиксами после рефакоринга

p.s. Это работало в версии 1.1. Я уже создал тикет для написания тестов, чтобы такое в будущем не вылазило

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants