{"action":"created","issue":{"url":"https://api.github.com/repos/Laravel-Backpack/CRUD/issues/397","repository_url":"https://api.github.com/repos/Laravel-Backpack/CRUD","labels_url":"https://api.github.com/repos/Laravel-Backpack/CRUD/issues/397/labels{/name}","comments_url":"https://api.github.com/repos/Laravel-Backpack/CRUD/issues/397/comments","events_url":"https://api.github.com/repos/Laravel-Backpack/CRUD/issues/397/events","html_url":"https://github.com/Laravel-Backpack/CRUD/issues/397","id":203898342,"number":397,"title":"addColumn and setColumnDetails","user":{"login":"num3r06","id":7809704,"avatar_url":"https://avatars.githubusercontent.com/u/7809704?v=3","gravatar_id":"","url":"https://api.github.com/users/num3r06","html_url":"https://github.com/num3r06","followers_url":"https://api.github.com/users/num3r06/followers","following_url":"https://api.github.com/users/num3r06/following{/other_user}","gists_url":"https://api.github.com/users/num3r06/gists{/gist_id}","starred_url":"https://api.github.com/users/num3r06/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/num3r06/subscriptions","organizations_url":"https://api.github.com/users/num3r06/orgs","repos_url":"https://api.github.com/users/num3r06/repos","events_url":"https://api.github.com/users/num3r06/events{/privacy}","received_events_url":"https://api.github.com/users/num3r06/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-01-29T21:36:24Z","updated_at":"2017-01-30T14:47:18Z","closed_at":null,"body":"Hi, i don't know if this is a issue.\r\nI try to use addColumn to add 1-1 relationship in table's column but doesn't works.\r\nUsing setColumnDetails all works fine.\r\nAt this point i try to use addColumn for render database column with other column type but this works only if the original column is present. If i try to use removColumn to remove original column nothing is visible.\r\nIf i don't use removColumn so the column it's duplicated\r\nthx for response"},"comment":{"url":"https://api.github.com/repos/Laravel-Backpack/CRUD/issues/comments/276080663","html_url":"https://github.com/Laravel-Backpack/CRUD/issues/397#issuecomment-276080663","issue_url":"https://api.github.com/repos/Laravel-Backpack/CRUD/issues/397","id":276080663,"user":{"login":"num3r06","id":7809704,"avatar_url":"https://avatars.githubusercontent.com/u/7809704?v=3","gravatar_id":"","url":"https://api.github.com/users/num3r06","html_url":"https://github.com/num3r06","followers_url":"https://api.github.com/users/num3r06/followers","following_url":"https://api.github.com/users/num3r06/following{/other_user}","gists_url":"https://api.github.com/users/num3r06/gists{/gist_id}","starred_url":"https://api.github.com/users/num3r06/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/num3r06/subscriptions","organizations_url":"https://api.github.com/users/num3r06/orgs","repos_url":"https://api.github.com/users/num3r06/repos","events_url":"https://api.github.com/users/num3r06/events{/privacy}","received_events_url":"https://api.github.com/users/num3r06/received_events","type":"User","site_admin":false},"created_at":"2017-01-30T14:47:18Z","updated_at":"2017-01-30T14:47:18Z","body":"  `\r\n$this->crud->addColumn([  'name' => 'id_commerciale', 'label' => \"Featured\", 'type' => 'check']);\r\n$this->crud->removeColumns(['id_sindaco',abitanti','telefono',\r\n'note','cap','id_tipo_anomalia_cliente','id_commerciale','id_cliente_old']);\r\n\r\n$this->crud->setColumnDetails('id_tipo_cliente', ['label' => \"Tipo Cliente\",  'type' => \"select\", 'name' => id_tipo_cliente',  'entity' => 'tipo_cliente',  'attribute' => \"descrizione\",  'model' =>App\\Models\\TipoCliente\"]); \r\n  `\r\nIn this code the column id_commerciale is not visible in datatable because is into the removeColumn array.\r\nBut if i remove from this array is visible twice: one for real column and one for addColumn method.\r\nMaybe i dont understand the use of addColumn and setColumnDetails method"}}
{"actor":{"display_login":"num3r06"}}