{"action":"opened","number":1,"pull_request":{"url":"https://api.github.com/repos/RickyLeRoi/proges/pulls/1","id":64970613,"html_url":"https://github.com/RickyLeRoi/proges/pull/1","diff_url":"https://github.com/RickyLeRoi/proges/pull/1.diff","patch_url":"https://github.com/RickyLeRoi/proges/pull/1.patch","issue_url":"https://api.github.com/repos/RickyLeRoi/proges/issues/1","number":1,"state":"open","locked":false,"title":"Qualche clean, qualche fix","user":{"login":"danieleX","id":7157155,"avatar_url":"https://avatars.githubusercontent.com/u/7157155?v=3","gravatar_id":"","url":"https://api.github.com/users/danieleX","html_url":"https://github.com/danieleX","followers_url":"https://api.github.com/users/danieleX/followers","following_url":"https://api.github.com/users/danieleX/following{/other_user}","gists_url":"https://api.github.com/users/danieleX/gists{/gist_id}","starred_url":"https://api.github.com/users/danieleX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danieleX/subscriptions","organizations_url":"https://api.github.com/users/danieleX/orgs","repos_url":"https://api.github.com/users/danieleX/repos","events_url":"https://api.github.com/users/danieleX/events{/privacy}","received_events_url":"https://api.github.com/users/danieleX/received_events","type":"User","site_admin":false},"body":"A parte il **data.php**, puoi cambiare quelle cose che ho modificato.\r\nSto impazzendo per sto fatto dell'aggiunta dei clienti, ti spiego:\r\nL'operatore scrive l'anagrafica ma incappa in qualche errore. Le query tra i vari tipi di anagrafiche vengono eseguite tutte quante, ma qualcuna fallisce, comportando un errore grave:\r\n\r\n- la query non viene scritta nella tabella; \r\n\r\n- lascia un \"buco\" che poi viene colmato dalla query (eseguita con successo) successiva. \r\n\r\nNella lista anagrafica ne consegue che i dati **i dati sballano**\r\n![image](https://cloud.githubusercontent.com/assets/7157155/14213169/d016cce0-f836-11e5-90f2-ae33811dae5c.png)\r\n\r\n![image](https://cloud.githubusercontent.com/assets/7157155/14213175/dad2afb4-f836-11e5-8cfe-84f659ea80cc.png)\r\n\r\n## **Possibili soluzioni**\r\nPossiamo fare una chain query, ma il problema rimane perché le tabelle sono separate però, possiamo fare in modo che scrive la riga per poi modificarla successivamente - SCHIFO.\r\nOppure possiamo staccare proprio le query, compilando separatamente ogni tipo di anagrafica, limitandoci a fare query per singola tabella. Possiamo aiutarci con ajax, per rendere il tutto più gradevole e veloce. Non so, mi siddìa fare lavoro a matula dimmi cosa ne pensi","created_at":"2016-04-01T16:29:44Z","updated_at":"2016-04-01T16:29:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/RickyLeRoi/proges/pulls/1/commits","review_comments_url":"https://api.github.com/repos/RickyLeRoi/proges/pulls/1/comments","review_comment_url":"https://api.github.com/repos/RickyLeRoi/proges/pulls/comments{/number}","comments_url":"https://api.github.com/repos/RickyLeRoi/proges/issues/1/comments","statuses_url":"https://api.github.com/repos/RickyLeRoi/proges/statuses/5cdc31129a67ff63d6f88af7cb8304c87516b3f6","head":{"label":"danieleX:master","ref":"master","sha":"5cdc31129a67ff63d6f88af7cb8304c87516b3f6","user":{"login":"danieleX","id":7157155,"avatar_url":"https://avatars.githubusercontent.com/u/7157155?v=3","gravatar_id":"","url":"https://api.github.com/users/danieleX","html_url":"https://github.com/danieleX","followers_url":"https://api.github.com/users/danieleX/followers","following_url":"https://api.github.com/users/danieleX/following{/other_user}","gists_url":"https://api.github.com/users/danieleX/gists{/gist_id}","starred_url":"https://api.github.com/users/danieleX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danieleX/subscriptions","organizations_url":"https://api.github.com/users/danieleX/orgs","repos_url":"https://api.github.com/users/danieleX/repos","events_url":"https://api.github.com/users/danieleX/events{/privacy}","received_events_url":"https://api.github.com/users/danieleX/received_events","type":"User","site_admin":false},"repo":{"id":55225307,"name":"proges","full_name":"danieleX/proges","owner":{"login":"danieleX","id":7157155,"avatar_url":"https://avatars.githubusercontent.com/u/7157155?v=3","gravatar_id":"","url":"https://api.github.com/users/danieleX","html_url":"https://github.com/danieleX","followers_url":"https://api.github.com/users/danieleX/followers","following_url":"https://api.github.com/users/danieleX/following{/other_user}","gists_url":"https://api.github.com/users/danieleX/gists{/gist_id}","starred_url":"https://api.github.com/users/danieleX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danieleX/subscriptions","organizations_url":"https://api.github.com/users/danieleX/orgs","repos_url":"https://api.github.com/users/danieleX/repos","events_url":"https://api.github.com/users/danieleX/events{/privacy}","received_events_url":"https://api.github.com/users/danieleX/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/danieleX/proges","description":"gestionale provenzano","fork":true,"url":"https://api.github.com/repos/danieleX/proges","forks_url":"https://api.github.com/repos/danieleX/proges/forks","keys_url":"https://api.github.com/repos/danieleX/proges/keys{/key_id}","collaborators_url":"https://api.github.com/repos/danieleX/proges/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/danieleX/proges/teams","hooks_url":"https://api.github.com/repos/danieleX/proges/hooks","issue_events_url":"https://api.github.com/repos/danieleX/proges/issues/events{/number}","events_url":"https://api.github.com/repos/danieleX/proges/events","assignees_url":"https://api.github.com/repos/danieleX/proges/assignees{/user}","branches_url":"https://api.github.com/repos/danieleX/proges/branches{/branch}","tags_url":"https://api.github.com/repos/danieleX/proges/tags","blobs_url":"https://api.github.com/repos/danieleX/proges/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/danieleX/proges/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/danieleX/proges/git/refs{/sha}","trees_url":"https://api.github.com/repos/danieleX/proges/git/trees{/sha}","statuses_url":"https://api.github.com/repos/danieleX/proges/statuses/{sha}","languages_url":"https://api.github.com/repos/danieleX/proges/languages","stargazers_url":"https://api.github.com/repos/danieleX/proges/stargazers","contributors_url":"https://api.github.com/repos/danieleX/proges/contributors","subscribers_url":"https://api.github.com/repos/danieleX/proges/subscribers","subscription_url":"https://api.github.com/repos/danieleX/proges/subscription","commits_url":"https://api.github.com/repos/danieleX/proges/commits{/sha}","git_commits_url":"https://api.github.com/repos/danieleX/proges/git/commits{/sha}","comments_url":"https://api.github.com/repos/danieleX/proges/comments{/number}","issue_comment_url":"https://api.github.com/repos/danieleX/proges/issues/comments{/number}","contents_url":"https://api.github.com/repos/danieleX/proges/contents/{+path}","compare_url":"https://api.github.com/repos/danieleX/proges/compare/{base}...{head}","merges_url":"https://api.github.com/repos/danieleX/proges/merges","archive_url":"https://api.github.com/repos/danieleX/proges/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/danieleX/proges/downloads","issues_url":"https://api.github.com/repos/danieleX/proges/issues{/number}","pulls_url":"https://api.github.com/repos/danieleX/proges/pulls{/number}","milestones_url":"https://api.github.com/repos/danieleX/proges/milestones{/number}","notifications_url":"https://api.github.com/repos/danieleX/proges/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/danieleX/proges/labels{/name}","releases_url":"https://api.github.com/repos/danieleX/proges/releases{/id}","deployments_url":"https://api.github.com/repos/danieleX/proges/deployments","created_at":"2016-04-01T10:47:54Z","updated_at":"2016-04-01T10:47:56Z","pushed_at":"2016-04-01T16:18:26Z","git_url":"git://github.com/danieleX/proges.git","ssh_url":"git@github.com:danieleX/proges.git","clone_url":"https://github.com/danieleX/proges.git","svn_url":"https://github.com/danieleX/proges","homepage":null,"size":1794,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"RickyLeRoi:master","ref":"master","sha":"1fc6f86263568cea3e6b461a0fa25826104f12ec","user":{"login":"RickyLeRoi","id":14819069,"avatar_url":"https://avatars.githubusercontent.com/u/14819069?v=3","gravatar_id":"","url":"https://api.github.com/users/RickyLeRoi","html_url":"https://github.com/RickyLeRoi","followers_url":"https://api.github.com/users/RickyLeRoi/followers","following_url":"https://api.github.com/users/RickyLeRoi/following{/other_user}","gists_url":"https://api.github.com/users/RickyLeRoi/gists{/gist_id}","starred_url":"https://api.github.com/users/RickyLeRoi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RickyLeRoi/subscriptions","organizations_url":"https://api.github.com/users/RickyLeRoi/orgs","repos_url":"https://api.github.com/users/RickyLeRoi/repos","events_url":"https://api.github.com/users/RickyLeRoi/events{/privacy}","received_events_url":"https://api.github.com/users/RickyLeRoi/received_events","type":"User","site_admin":false},"repo":{"id":53682301,"name":"proges","full_name":"RickyLeRoi/proges","owner":{"login":"RickyLeRoi","id":14819069,"avatar_url":"https://avatars.githubusercontent.com/u/14819069?v=3","gravatar_id":"","url":"https://api.github.com/users/RickyLeRoi","html_url":"https://github.com/RickyLeRoi","followers_url":"https://api.github.com/users/RickyLeRoi/followers","following_url":"https://api.github.com/users/RickyLeRoi/following{/other_user}","gists_url":"https://api.github.com/users/RickyLeRoi/gists{/gist_id}","starred_url":"https://api.github.com/users/RickyLeRoi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RickyLeRoi/subscriptions","organizations_url":"https://api.github.com/users/RickyLeRoi/orgs","repos_url":"https://api.github.com/users/RickyLeRoi/repos","events_url":"https://api.github.com/users/RickyLeRoi/events{/privacy}","received_events_url":"https://api.github.com/users/RickyLeRoi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/RickyLeRoi/proges","description":"gestionale provenzano","fork":false,"url":"https://api.github.com/repos/RickyLeRoi/proges","forks_url":"https://api.github.com/repos/RickyLeRoi/proges/forks","keys_url":"https://api.github.com/repos/RickyLeRoi/proges/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RickyLeRoi/proges/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RickyLeRoi/proges/teams","hooks_url":"https://api.github.com/repos/RickyLeRoi/proges/hooks","issue_events_url":"https://api.github.com/repos/RickyLeRoi/proges/issues/events{/number}","events_url":"https://api.github.com/repos/RickyLeRoi/proges/events","assignees_url":"https://api.github.com/repos/RickyLeRoi/proges/assignees{/user}","branches_url":"https://api.github.com/repos/RickyLeRoi/proges/branches{/branch}","tags_url":"https://api.github.com/repos/RickyLeRoi/proges/tags","blobs_url":"https://api.github.com/repos/RickyLeRoi/proges/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RickyLeRoi/proges/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RickyLeRoi/proges/git/refs{/sha}","trees_url":"https://api.github.com/repos/RickyLeRoi/proges/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RickyLeRoi/proges/statuses/{sha}","languages_url":"https://api.github.com/repos/RickyLeRoi/proges/languages","stargazers_url":"https://api.github.com/repos/RickyLeRoi/proges/stargazers","contributors_url":"https://api.github.com/repos/RickyLeRoi/proges/contributors","subscribers_url":"https://api.github.com/repos/RickyLeRoi/proges/subscribers","subscription_url":"https://api.github.com/repos/RickyLeRoi/proges/subscription","commits_url":"https://api.github.com/repos/RickyLeRoi/proges/commits{/sha}","git_commits_url":"https://api.github.com/repos/RickyLeRoi/proges/git/commits{/sha}","comments_url":"https://api.github.com/repos/RickyLeRoi/proges/comments{/number}","issue_comment_url":"https://api.github.com/repos/RickyLeRoi/proges/issues/comments{/number}","contents_url":"https://api.github.com/repos/RickyLeRoi/proges/contents/{+path}","compare_url":"https://api.github.com/repos/RickyLeRoi/proges/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RickyLeRoi/proges/merges","archive_url":"https://api.github.com/repos/RickyLeRoi/proges/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RickyLeRoi/proges/downloads","issues_url":"https://api.github.com/repos/RickyLeRoi/proges/issues{/number}","pulls_url":"https://api.github.com/repos/RickyLeRoi/proges/pulls{/number}","milestones_url":"https://api.github.com/repos/RickyLeRoi/proges/milestones{/number}","notifications_url":"https://api.github.com/repos/RickyLeRoi/proges/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RickyLeRoi/proges/labels{/name}","releases_url":"https://api.github.com/repos/RickyLeRoi/proges/releases{/id}","deployments_url":"https://api.github.com/repos/RickyLeRoi/proges/deployments","created_at":"2016-03-11T16:53:34Z","updated_at":"2016-03-11T17:15:35Z","pushed_at":"2016-03-17T15:04:03Z","git_url":"git://github.com/RickyLeRoi/proges.git","ssh_url":"git@github.com:RickyLeRoi/proges.git","clone_url":"https://github.com/RickyLeRoi/proges.git","svn_url":"https://github.com/RickyLeRoi/proges","homepage":null,"size":1800,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/RickyLeRoi/proges/pulls/1"},"html":{"href":"https://github.com/RickyLeRoi/proges/pull/1"},"issue":{"href":"https://api.github.com/repos/RickyLeRoi/proges/issues/1"},"comments":{"href":"https://api.github.com/repos/RickyLeRoi/proges/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/RickyLeRoi/proges/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/RickyLeRoi/proges/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/RickyLeRoi/proges/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/RickyLeRoi/proges/statuses/5cdc31129a67ff63d6f88af7cb8304c87516b3f6"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":48,"deletions":7,"changed_files":7}}