{"action":"closed","issue":{"url":"https://api.github.com/repos/kartik-v/yii2-editable/issues/129","repository_url":"https://api.github.com/repos/kartik-v/yii2-editable","labels_url":"https://api.github.com/repos/kartik-v/yii2-editable/issues/129/labels{/name}","comments_url":"https://api.github.com/repos/kartik-v/yii2-editable/issues/129/comments","events_url":"https://api.github.com/repos/kartik-v/yii2-editable/issues/129/events","html_url":"https://github.com/kartik-v/yii2-editable/issues/129","id":167879966,"number":129,"title":"Index action, working only first item","user":{"login":"dawidof","id":1425756,"avatar_url":"https://avatars.githubusercontent.com/u/1425756?v=3","gravatar_id":"","url":"https://api.github.com/users/dawidof","html_url":"https://github.com/dawidof","followers_url":"https://api.github.com/users/dawidof/followers","following_url":"https://api.github.com/users/dawidof/following{/other_user}","gists_url":"https://api.github.com/users/dawidof/gists{/gist_id}","starred_url":"https://api.github.com/users/dawidof/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dawidof/subscriptions","organizations_url":"https://api.github.com/users/dawidof/orgs","repos_url":"https://api.github.com/users/dawidof/repos","events_url":"https://api.github.com/users/dawidof/events{/privacy}","received_events_url":"https://api.github.com/users/dawidof/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-27T15:14:19Z","updated_at":"2016-07-27T16:13:38Z","closed_at":"2016-07-27T16:13:38Z","body":"Hi Kartik,\r\n\r\nGet the same issue as here [#36](https://github.com/kartik-v/yii2-editable/issues/36) with multiple elements same model and same attribute(working only first), but couldn't resolve by myself.\r\nHere is my codeI've got\r\n```php\r\nforeach ($integrations as $integration) {\r\n      echo Editable::widget([\r\n            'attribute'=>'campaign_id',\r\n            'model' => $integration,\r\n            'asPopover' => false,\r\n            'format' => Editable::FORMAT_BUTTON,\r\n            'inputType' => Editable::INPUT_DROPDOWN_LIST,\r\n            'data' => (new common\\models\\Campaign())->getSource(),\r\n            'options' => ['class'=>'form-control', 'prompt'=>'Select campaign...'],\r\n            'editableValueOptions'=>['class'=>'text-danger'],\r\n            'formOptions' => ['action' => '/dashboard/integration/' . $integration['id']],\r\n            'valueIfNull' => '(not set)',\r\n            'displayValue' => (isset($integration->campaign) ? $integration->campaign->title : null),\r\n            // 'editableButtonOptions' => ['disabled' => true]\r\n      ]);\r\n}\r\n\r\n```\r\n\r\nCould you help?"}}
{"actor":{"display_login":"kartik-v"}}