{"action":"created","issue":{"url":"https://api.github.com/repos/FHenry/lead/issues/14","labels_url":"https://api.github.com/repos/FHenry/lead/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/FHenry/lead/issues/14/comments","events_url":"https://api.github.com/repos/FHenry/lead/issues/14/events","html_url":"https://github.com/FHenry/lead/issues/14","id":118409558,"number":14,"title":"Allow users to attach several leads to a single contract","user":{"login":"daamien","id":165646,"avatar_url":"https://avatars.githubusercontent.com/u/165646?v=3","gravatar_id":"","url":"https://api.github.com/users/daamien","html_url":"https://github.com/daamien","followers_url":"https://api.github.com/users/daamien/followers","following_url":"https://api.github.com/users/daamien/following{/other_user}","gists_url":"https://api.github.com/users/daamien/gists{/gist_id}","starred_url":"https://api.github.com/users/daamien/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daamien/subscriptions","organizations_url":"https://api.github.com/users/daamien/orgs","repos_url":"https://api.github.com/users/daamien/repos","events_url":"https://api.github.com/users/daamien/events{/privacy}","received_events_url":"https://api.github.com/users/daamien/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-23T15:48:58Z","updated_at":"2015-12-04T08:47:51Z","closed_at":"2015-12-03T11:54:36Z","body":"\r\nWe'd like to attach multiple leads to the same contract.\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/FHenry/lead/issues/comments/161910281","html_url":"https://github.com/FHenry/lead/issues/14#issuecomment-161910281","issue_url":"https://api.github.com/repos/FHenry/lead/issues/14","id":161910281,"user":{"login":"daamien","id":165646,"avatar_url":"https://avatars.githubusercontent.com/u/165646?v=3","gravatar_id":"","url":"https://api.github.com/users/daamien","html_url":"https://github.com/daamien","followers_url":"https://api.github.com/users/daamien/followers","following_url":"https://api.github.com/users/daamien/following{/other_user}","gists_url":"https://api.github.com/users/daamien/gists{/gist_id}","starred_url":"https://api.github.com/users/daamien/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daamien/subscriptions","organizations_url":"https://api.github.com/users/daamien/orgs","repos_url":"https://api.github.com/users/daamien/repos","events_url":"https://api.github.com/users/daamien/events{/privacy}","received_events_url":"https://api.github.com/users/daamien/received_events","type":"User","site_admin":false},"created_at":"2015-12-04T08:47:51Z","updated_at":"2015-12-04T08:47:51Z","body":"\r\nFTR when I activate the option here /custom/lead/admin/admin_lead.php ,  I get the following errors in the PostgreSQL logs :  \r\n2015-12-04 09:42:45 CET [27009-1] labo@laboerp ERROR:  relation \"idx_llx_lead_fk_soc\" already exists\r\n2015-12-04 09:42:45 CET [27009-2] labo@laboerp STATEMENT:  -- ALTER TABLE llx_lead ADD INDEX idx_llx_lead_fk_soc (fk_soc) replaced by --\r\n        CREATE INDEX idx_llx_lead_fk_soc  ON llx_lead  (fk_soc)\r\n2015-12-04 09:42:45 CET [27009-3] labo@laboerp ERROR:  constraint \"llx_lead_ibfk_3\" for relation \"llx_lead\" already exists\r\n2015-12-04 09:42:45 CET [27009-4] labo@laboerp STATEMENT:  ALTER TABLE llx_lead ADD CONSTRAINT llx_lead_ibfk_3 FOREIGN KEY (fk_soc) REFERENCES llx_societe (rowid) DEFERRABLE INITIALLY IMMEDIATE;\r\n\r\nHowever the feature works as expected"}}