{"action":"created","issue":{"url":"https://api.github.com/repos/EC-CUBE/ec-cube/issues/685","labels_url":"https://api.github.com/repos/EC-CUBE/ec-cube/issues/685/labels{/name}","comments_url":"https://api.github.com/repos/EC-CUBE/ec-cube/issues/685/comments","events_url":"https://api.github.com/repos/EC-CUBE/ec-cube/issues/685/events","html_url":"https://github.com/EC-CUBE/ec-cube/pull/685","id":103256433,"number":685,"title":"支払方法設定の不具合 #676","user":{"login":"migarashi47","id":12904916,"avatar_url":"https://avatars.githubusercontent.com/u/12904916?v=3","gravatar_id":"","url":"https://api.github.com/users/migarashi47","html_url":"https://github.com/migarashi47","followers_url":"https://api.github.com/users/migarashi47/followers","following_url":"https://api.github.com/users/migarashi47/following{/other_user}","gists_url":"https://api.github.com/users/migarashi47/gists{/gist_id}","starred_url":"https://api.github.com/users/migarashi47/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/migarashi47/subscriptions","organizations_url":"https://api.github.com/users/migarashi47/orgs","repos_url":"https://api.github.com/users/migarashi47/repos","events_url":"https://api.github.com/users/migarashi47/events{/privacy}","received_events_url":"https://api.github.com/users/migarashi47/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/EC-CUBE/ec-cube/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/EC-CUBE/ec-cube/milestones/8","html_url":"https://github.com/EC-CUBE/ec-cube/milestones/3.0.4","labels_url":"https://api.github.com/repos/EC-CUBE/ec-cube/milestones/8/labels","id":1261660,"number":8,"title":"3.0.4","description":"","creator":{"login":"Yangsin","id":8196511,"avatar_url":"https://avatars.githubusercontent.com/u/8196511?v=3","gravatar_id":"","url":"https://api.github.com/users/Yangsin","html_url":"https://github.com/Yangsin","followers_url":"https://api.github.com/users/Yangsin/followers","following_url":"https://api.github.com/users/Yangsin/following{/other_user}","gists_url":"https://api.github.com/users/Yangsin/gists{/gist_id}","starred_url":"https://api.github.com/users/Yangsin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yangsin/subscriptions","organizations_url":"https://api.github.com/users/Yangsin/orgs","repos_url":"https://api.github.com/users/Yangsin/repos","events_url":"https://api.github.com/users/Yangsin/events{/privacy}","received_events_url":"https://api.github.com/users/Yangsin/received_events","type":"User","site_admin":false},"open_issues":21,"closed_issues":7,"state":"open","created_at":"2015-08-18T23:45:56Z","updated_at":"2015-09-14T07:13:45Z","due_on":"2015-09-23T15:00:00Z","closed_at":null},"comments":7,"created_at":"2015-08-26T12:34:51Z","updated_at":"2015-09-16T04:46:53Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/EC-CUBE/ec-cube/pulls/685","html_url":"https://github.com/EC-CUBE/ec-cube/pull/685","diff_url":"https://github.com/EC-CUBE/ec-cube/pull/685.diff","patch_url":"https://github.com/EC-CUBE/ec-cube/pull/685.patch"},"body":"* 金額に、小数点や負の整数が入力できる  \r\n正規表現(/^\\d+$/)をバリデートに追加して対処しました。また、\r\n'precision' => 0,\r\nだと小数を入力しても整数にして検査しているようなので、見かけ上\r\n小数が入力できてしまいますが、この場合はどう対処すればよいのでしょうか。\r\n* 利用条件のエラーメッセージが逆に表示されている  \r\nエラーメッセージを修正しましたが、この逆というのは修正通りの意図で\r\n合っていますでしょうか。"},"comment":{"url":"https://api.github.com/repos/EC-CUBE/ec-cube/issues/comments/140625757","html_url":"https://github.com/EC-CUBE/ec-cube/pull/685#issuecomment-140625757","issue_url":"https://api.github.com/repos/EC-CUBE/ec-cube/issues/685","id":140625757,"user":{"login":"chihiro-adachi","id":8196725,"avatar_url":"https://avatars.githubusercontent.com/u/8196725?v=3","gravatar_id":"","url":"https://api.github.com/users/chihiro-adachi","html_url":"https://github.com/chihiro-adachi","followers_url":"https://api.github.com/users/chihiro-adachi/followers","following_url":"https://api.github.com/users/chihiro-adachi/following{/other_user}","gists_url":"https://api.github.com/users/chihiro-adachi/gists{/gist_id}","starred_url":"https://api.github.com/users/chihiro-adachi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chihiro-adachi/subscriptions","organizations_url":"https://api.github.com/users/chihiro-adachi/orgs","repos_url":"https://api.github.com/users/chihiro-adachi/repos","events_url":"https://api.github.com/users/chihiro-adachi/events{/privacy}","received_events_url":"https://api.github.com/users/chihiro-adachi/received_events","type":"User","site_admin":false},"created_at":"2015-09-16T04:46:53Z","updated_at":"2015-09-16T04:46:53Z","body":"ありがとうございます。\r\npresisionはデフォルトで設定されるみたいですね。\r\n\r\n@Yangsin \r\n丸めずに入力値をそのまま扱う、というのはmoney typeを利用する限り難しそうです。※presisionを設定しない場合は逆に少数点以下が表示されてしまいます。\r\n通貨として扱う自体の課題として、現状では許容するでよいかと思いますがいかがでしょうか。"}}