{"action":"created","comment":{"url":"https://api.github.com/repos/PrestaShop/PrestaShop/pulls/comments/63010799","id":63010799,"diff_hunk":"@@ -0,0 +1,106 @@\n+<?php\n+/**\n+ * 2007-2015 PrestaShop\n+ *\n+ * NOTICE OF LICENSE\n+ *\n+ * This source file is subject to the Open Software License (OSL 3.0)\n+ * that is bundled with this package in the file LICENSE.txt.\n+ * It is also available through the world-wide-web at this URL:\n+ * http://opensource.org/licenses/osl-3.0.php\n+ * If you did not receive a copy of the license and are unable to\n+ * obtain it through the world-wide-web, please send an email\n+ * to license@prestashop.com so we can send you a copy immediately.\n+ *\n+ * DISCLAIMER\n+ *\n+ * Do not edit or add to this file if you wish to upgrade PrestaShop to newer\n+ * versions in the future. If you wish to customize PrestaShop for your\n+ * needs please refer to http://www.prestashop.com for more information.\n+ *\n+ * @author    PrestaShop SA <contact@prestashop.com>\n+ * @copyright 2007-2015 PrestaShop SA\n+ * @license   http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)\n+ * International Registered Trademark & Property of PrestaShop SA\n+ */\n+namespace PrestaShopBundle\\Form\\Admin\\Product;\n+\n+use PrestaShopBundle\\Form\\Admin\\Type\\CommonAbstractType;\n+use Symfony\\Component\\Form\\FormBuilderInterface;\n+use Symfony\\Component\\OptionsResolver\\OptionsResolver;\n+use Symfony\\Component\\Translation\\TranslatorInterface;\n+\n+/**\n+ * This form class is responsible to generate the form for bulk combination feature\n+ * Note this form is not validated from the server side.\n+ */\n+class ProductCombinationBulk extends CommonAbstractType\n+{\n+    private $isoCode;\n+    private $priceDisplayPrecision;\n+    private $translator;\n+\n+    public function __construct(TranslatorInterface $translator)\n+    {\n+        $this->translator = $translator;\n+    }\n+\n+    public function buildForm(FormBuilderInterface $builder, array $options)\n+    {\n+        $this->isoCode = $options['iso_code'];\n+        $this->priceDisplayPrecision = $options['price_display_precision'];\n+\n+        $builder->add('quantity', 'Symfony\\Component\\Form\\Extension\\Core\\Type\\NumberType', array(\n+            'required' => true,\n+            'label' => $this->translator->trans('Quantity', [], 'AdminProducts'),\n+        ))\n+        ->add('cost_price', 'Symfony\\Component\\Form\\Extension\\Core\\Type\\MoneyType', array(\n+            'required' => false,\n+            'label' => $this->translator->trans('Pre-tax retail price', [], 'AdminProducts'),\n+            'attr' => ['data-display-price-precision' => $this->priceDisplayPrecision],\n+            'currency' => $this->isoCode,\n+        ))\n+        ->add('impact_on_weight', 'Symfony\\Component\\Form\\Extension\\Core\\Type\\MoneyType', array(\n+            'required' => false,\n+            'label' => $this->translator->trans('Impact on weight', [], 'AdminProducts'),\n+        ))\n+        ->add('impact_on_price_te', 'Symfony\\Component\\Form\\Extension\\Core\\Type\\MoneyType', array(\n+            'required' => false,\n+            'label' => $this->translator->trans('Impact on price (tax excl.)', [], 'AdminProducts'),\n+            'currency' => $this->isoCode,\n+        ))\n+        ->add('impact_on_price_ti', 'Symfony\\Component\\Form\\Extension\\Core\\Type\\MoneyType', array(\n+            'required' => false,\n+            'mapped' => false,\n+            'label' => $this->translator->trans('Impact on price (tax incl.)', [], 'AdminProducts'),\n+            'currency' => $this->isoCode,\n+        ))\n+        ->add('date_availability', 'PrestaShopBundle\\Form\\Admin\\Type\\DatePickerType', array(\n+            'required' => false,\n+            'label' => $this->translator->trans('Availability date', [], 'AdminProducts'),\n+            'attr' => ['class' => 'date', 'placeholder' => 'YYYY-MM-DD'],\n+        ))\n+        ->add('reference', 'Symfony\\Component\\Form\\Extension\\Core\\Type\\TextType', array(\n+            'required' => false,\n+            'label' => $this->translator->trans('Reference', [], 'AdminProducts'),\n+        ))\n+        ->add('minimal_quantity', 'Symfony\\Component\\Form\\Extension\\Core\\Type\\NumberType', array(\n+            'required' => false,\n+            'label' => $this->translator->trans('Minimum quantity', [], 'AdminProducts'),\n+        ));\n+    }\n+\n+    public function configureOptions(OptionsResolver $resolver)\n+    {\n+        $resolver->setDefaults(array(\n+            'validation_groups' => false,\n+            'iso_code' => '',\n+            'price_display_precision' => ''","path":"src/PrestaShopBundle/Form/Admin/Product/ProductCombinationBulk.php","position":null,"original_position":98,"commit_id":"68ae1ffa1ef0af57455558875a3478d2d81b5591","original_commit_id":"dca213518da3d2970869ab8965c0617852cbc6ec","user":{"login":"mickaelandrieu","id":1247388,"avatar_url":"https://avatars.githubusercontent.com/u/1247388?v=3","gravatar_id":"","url":"https://api.github.com/users/mickaelandrieu","html_url":"https://github.com/mickaelandrieu","followers_url":"https://api.github.com/users/mickaelandrieu/followers","following_url":"https://api.github.com/users/mickaelandrieu/following{/other_user}","gists_url":"https://api.github.com/users/mickaelandrieu/gists{/gist_id}","starred_url":"https://api.github.com/users/mickaelandrieu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mickaelandrieu/subscriptions","organizations_url":"https://api.github.com/users/mickaelandrieu/orgs","repos_url":"https://api.github.com/users/mickaelandrieu/repos","events_url":"https://api.github.com/users/mickaelandrieu/events{/privacy}","received_events_url":"https://api.github.com/users/mickaelandrieu/received_events","type":"User","site_admin":false},"body":"done","created_at":"2016-05-12T12:27:12Z","updated_at":"2016-05-12T12:27:12Z","html_url":"https://github.com/PrestaShop/PrestaShop/pull/5549#discussion_r63010799","pull_request_url":"https://api.github.com/repos/PrestaShop/PrestaShop/pulls/5549","_links":{"self":{"href":"https://api.github.com/repos/PrestaShop/PrestaShop/pulls/comments/63010799"},"html":{"href":"https://github.com/PrestaShop/PrestaShop/pull/5549#discussion_r63010799"},"pull_request":{"href":"https://api.github.com/repos/PrestaShop/PrestaShop/pulls/5549"}}},"pull_request":{"url":"https://api.github.com/repos/PrestaShop/PrestaShop/pulls/5549","id":69801311,"html_url":"https://github.com/PrestaShop/PrestaShop/pull/5549","diff_url":"https://github.com/PrestaShop/PrestaShop/pull/5549.diff","patch_url":"https://github.com/PrestaShop/PrestaShop/pull/5549.patch","issue_url":"https://api.github.com/repos/PrestaShop/PrestaShop/issues/5549","number":5549,"state":"open","locked":false,"title":"Introduced bulk edition on combinations","user":{"login":"mickaelandrieu","id":1247388,"avatar_url":"https://avatars.githubusercontent.com/u/1247388?v=3","gravatar_id":"","url":"https://api.github.com/users/mickaelandrieu","html_url":"https://github.com/mickaelandrieu","followers_url":"https://api.github.com/users/mickaelandrieu/followers","following_url":"https://api.github.com/users/mickaelandrieu/following{/other_user}","gists_url":"https://api.github.com/users/mickaelandrieu/gists{/gist_id}","starred_url":"https://api.github.com/users/mickaelandrieu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mickaelandrieu/subscriptions","organizations_url":"https://api.github.com/users/mickaelandrieu/orgs","repos_url":"https://api.github.com/users/mickaelandrieu/repos","events_url":"https://api.github.com/users/mickaelandrieu/events{/privacy}","received_events_url":"https://api.github.com/users/mickaelandrieu/received_events","type":"User","site_admin":false},"body":"| Questions     | Answers\r\n| ------------- | -------------------------------------------------------\r\n| Branch?       | develop\r\n| Description?  | This contribution add a way to manage update on multiples combinations linked to a product\r\n| Type?         | new feature\r\n| Category?     | Back Office\r\n| BC breaks?    | no\r\n| Deprecations? | no\r\n| Fixed ticket? | http://forge.prestashop.com/browse/BOOM-469\r\n| How to test?  | Select some combinations using checkboxes, use the *bulk actions* form to apply some new data. Also, you can delete combinations using \"delete combinations\" buttons.\r\n\r\n![bulk_combinations](https://cloud.githubusercontent.com/assets/1247388/15209319/b5659da8-1830-11e6-8710-4dde6d8e2381.png)\r\n\r\n- [x] Edition of combinations OK\r\n- [ ] Deletion of combinations OK\r\n","created_at":"2016-05-12T09:00:27Z","updated_at":"2016-05-12T12:27:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"db81cb82504266eefda89f9e33e8e1146a5fc64d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/PrestaShop/PrestaShop/pulls/5549/commits","review_comments_url":"https://api.github.com/repos/PrestaShop/PrestaShop/pulls/5549/comments","review_comment_url":"https://api.github.com/repos/PrestaShop/PrestaShop/pulls/comments{/number}","comments_url":"https://api.github.com/repos/PrestaShop/PrestaShop/issues/5549/comments","statuses_url":"https://api.github.com/repos/PrestaShop/PrestaShop/statuses/68ae1ffa1ef0af57455558875a3478d2d81b5591","head":{"label":"mickaelandrieu:boom-469-bulk-edition-on-combinations","ref":"boom-469-bulk-edition-on-combinations","sha":"68ae1ffa1ef0af57455558875a3478d2d81b5591","user":{"login":"mickaelandrieu","id":1247388,"avatar_url":"https://avatars.githubusercontent.com/u/1247388?v=3","gravatar_id":"","url":"https://api.github.com/users/mickaelandrieu","html_url":"https://github.com/mickaelandrieu","followers_url":"https://api.github.com/users/mickaelandrieu/followers","following_url":"https://api.github.com/users/mickaelandrieu/following{/other_user}","gists_url":"https://api.github.com/users/mickaelandrieu/gists{/gist_id}","starred_url":"https://api.github.com/users/mickaelandrieu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mickaelandrieu/subscriptions","organizations_url":"https://api.github.com/users/mickaelandrieu/orgs","repos_url":"https://api.github.com/users/mickaelandrieu/repos","events_url":"https://api.github.com/users/mickaelandrieu/events{/privacy}","received_events_url":"https://api.github.com/users/mickaelandrieu/received_events","type":"User","site_admin":false},"repo":{"id":45130346,"name":"PrestaShop","full_name":"mickaelandrieu/PrestaShop","owner":{"login":"mickaelandrieu","id":1247388,"avatar_url":"https://avatars.githubusercontent.com/u/1247388?v=3","gravatar_id":"","url":"https://api.github.com/users/mickaelandrieu","html_url":"https://github.com/mickaelandrieu","followers_url":"https://api.github.com/users/mickaelandrieu/followers","following_url":"https://api.github.com/users/mickaelandrieu/following{/other_user}","gists_url":"https://api.github.com/users/mickaelandrieu/gists{/gist_id}","starred_url":"https://api.github.com/users/mickaelandrieu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mickaelandrieu/subscriptions","organizations_url":"https://api.github.com/users/mickaelandrieu/orgs","repos_url":"https://api.github.com/users/mickaelandrieu/repos","events_url":"https://api.github.com/users/mickaelandrieu/events{/privacy}","received_events_url":"https://api.github.com/users/mickaelandrieu/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mickaelandrieu/PrestaShop","description":"PrestaShop offers a free, fully scalable, Open-source e-commerce solution.","fork":true,"url":"https://api.github.com/repos/mickaelandrieu/PrestaShop","forks_url":"https://api.github.com/repos/mickaelandrieu/PrestaShop/forks","keys_url":"https://api.github.com/repos/mickaelandrieu/PrestaShop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mickaelandrieu/PrestaShop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mickaelandrieu/PrestaShop/teams","hooks_url":"https://api.github.com/repos/mickaelandrieu/PrestaShop/hooks","issue_events_url":"https://api.github.com/repos/mickaelandrieu/PrestaShop/issues/events{/number}","events_url":"https://api.github.com/repos/mickaelandrieu/PrestaShop/events","assignees_url":"https://api.github.com/repos/mickaelandrieu/PrestaShop/assignees{/user}","branches_url":"https://api.github.com/repos/mickaelandrieu/PrestaShop/branches{/branch}","tags_url":"https://api.github.com/repos/mickaelandrieu/PrestaShop/tags","blobs_url":"https://api.github.com/repos/mickaelandrieu/PrestaShop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mickaelandrieu/PrestaShop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mickaelandrieu/PrestaShop/git/refs{/sha}","trees_url":"https://api.github.com/repos/mickaelandrieu/PrestaShop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mickaelandrieu/PrestaShop/statuses/{sha}","languages_url":"https://api.github.com/repos/mickaelandrieu/PrestaShop/languages","stargazers_url":"https://api.github.com/repos/mickaelandrieu/PrestaShop/stargazers","contributors_url":"https://api.github.com/repos/mickaelandrieu/PrestaShop/contributors","subscribers_url":"https://api.github.com/repos/mickaelandrieu/PrestaShop/subscribers","subscription_url":"https://api.github.com/repos/mickaelandrieu/PrestaShop/subscription","commits_url":"https://api.github.com/repos/mickaelandrieu/PrestaShop/commits{/sha}","git_commits_url":"https://api.github.com/repos/mickaelandrieu/PrestaShop/git/commits{/sha}","comments_url":"https://api.github.com/repos/mickaelandrieu/PrestaShop/comments{/number}","issue_comment_url":"https://api.github.com/repos/mickaelandrieu/PrestaShop/issues/comments{/number}","contents_url":"https://api.github.com/repos/mickaelandrieu/PrestaShop/contents/{+path}","compare_url":"https://api.github.com/repos/mickaelandrieu/PrestaShop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mickaelandrieu/PrestaShop/merges","archive_url":"https://api.github.com/repos/mickaelandrieu/PrestaShop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mickaelandrieu/PrestaShop/downloads","issues_url":"https://api.github.com/repos/mickaelandrieu/PrestaShop/issues{/number}","pulls_url":"https://api.github.com/repos/mickaelandrieu/PrestaShop/pulls{/number}","milestones_url":"https://api.github.com/repos/mickaelandrieu/PrestaShop/milestones{/number}","notifications_url":"https://api.github.com/repos/mickaelandrieu/PrestaShop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mickaelandrieu/PrestaShop/labels{/name}","releases_url":"https://api.github.com/repos/mickaelandrieu/PrestaShop/releases{/id}","deployments_url":"https://api.github.com/repos/mickaelandrieu/PrestaShop/deployments","created_at":"2015-10-28T17:34:50Z","updated_at":"2016-01-12T13:36:53Z","pushed_at":"2016-05-12T12:18:33Z","git_url":"git://github.com/mickaelandrieu/PrestaShop.git","ssh_url":"git@github.com:mickaelandrieu/PrestaShop.git","clone_url":"https://github.com/mickaelandrieu/PrestaShop.git","svn_url":"https://github.com/mickaelandrieu/PrestaShop","homepage":"http://www.prestashop.com/","size":246401,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"PrestaShop:develop","ref":"develop","sha":"ce1ed6a76dcf9a58bef8f7d781ff37371e8bf0cf","user":{"login":"PrestaShop","id":2815696,"avatar_url":"https://avatars.githubusercontent.com/u/2815696?v=3","gravatar_id":"","url":"https://api.github.com/users/PrestaShop","html_url":"https://github.com/PrestaShop","followers_url":"https://api.github.com/users/PrestaShop/followers","following_url":"https://api.github.com/users/PrestaShop/following{/other_user}","gists_url":"https://api.github.com/users/PrestaShop/gists{/gist_id}","starred_url":"https://api.github.com/users/PrestaShop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PrestaShop/subscriptions","organizations_url":"https://api.github.com/users/PrestaShop/orgs","repos_url":"https://api.github.com/users/PrestaShop/repos","events_url":"https://api.github.com/users/PrestaShop/events{/privacy}","received_events_url":"https://api.github.com/users/PrestaShop/received_events","type":"Organization","site_admin":false},"repo":{"id":6763587,"name":"PrestaShop","full_name":"PrestaShop/PrestaShop","owner":{"login":"PrestaShop","id":2815696,"avatar_url":"https://avatars.githubusercontent.com/u/2815696?v=3","gravatar_id":"","url":"https://api.github.com/users/PrestaShop","html_url":"https://github.com/PrestaShop","followers_url":"https://api.github.com/users/PrestaShop/followers","following_url":"https://api.github.com/users/PrestaShop/following{/other_user}","gists_url":"https://api.github.com/users/PrestaShop/gists{/gist_id}","starred_url":"https://api.github.com/users/PrestaShop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PrestaShop/subscriptions","organizations_url":"https://api.github.com/users/PrestaShop/orgs","repos_url":"https://api.github.com/users/PrestaShop/repos","events_url":"https://api.github.com/users/PrestaShop/events{/privacy}","received_events_url":"https://api.github.com/users/PrestaShop/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/PrestaShop/PrestaShop","description":"PrestaShop offers a free, fully scalable, Open Source e-commerce solution.","fork":false,"url":"https://api.github.com/repos/PrestaShop/PrestaShop","forks_url":"https://api.github.com/repos/PrestaShop/PrestaShop/forks","keys_url":"https://api.github.com/repos/PrestaShop/PrestaShop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PrestaShop/PrestaShop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PrestaShop/PrestaShop/teams","hooks_url":"https://api.github.com/repos/PrestaShop/PrestaShop/hooks","issue_events_url":"https://api.github.com/repos/PrestaShop/PrestaShop/issues/events{/number}","events_url":"https://api.github.com/repos/PrestaShop/PrestaShop/events","assignees_url":"https://api.github.com/repos/PrestaShop/PrestaShop/assignees{/user}","branches_url":"https://api.github.com/repos/PrestaShop/PrestaShop/branches{/branch}","tags_url":"https://api.github.com/repos/PrestaShop/PrestaShop/tags","blobs_url":"https://api.github.com/repos/PrestaShop/PrestaShop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PrestaShop/PrestaShop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PrestaShop/PrestaShop/git/refs{/sha}","trees_url":"https://api.github.com/repos/PrestaShop/PrestaShop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PrestaShop/PrestaShop/statuses/{sha}","languages_url":"https://api.github.com/repos/PrestaShop/PrestaShop/languages","stargazers_url":"https://api.github.com/repos/PrestaShop/PrestaShop/stargazers","contributors_url":"https://api.github.com/repos/PrestaShop/PrestaShop/contributors","subscribers_url":"https://api.github.com/repos/PrestaShop/PrestaShop/subscribers","subscription_url":"https://api.github.com/repos/PrestaShop/PrestaShop/subscription","commits_url":"https://api.github.com/repos/PrestaShop/PrestaShop/commits{/sha}","git_commits_url":"https://api.github.com/repos/PrestaShop/PrestaShop/git/commits{/sha}","comments_url":"https://api.github.com/repos/PrestaShop/PrestaShop/comments{/number}","issue_comment_url":"https://api.github.com/repos/PrestaShop/PrestaShop/issues/comments{/number}","contents_url":"https://api.github.com/repos/PrestaShop/PrestaShop/contents/{+path}","compare_url":"https://api.github.com/repos/PrestaShop/PrestaShop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PrestaShop/PrestaShop/merges","archive_url":"https://api.github.com/repos/PrestaShop/PrestaShop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PrestaShop/PrestaShop/downloads","issues_url":"https://api.github.com/repos/PrestaShop/PrestaShop/issues{/number}","pulls_url":"https://api.github.com/repos/PrestaShop/PrestaShop/pulls{/number}","milestones_url":"https://api.github.com/repos/PrestaShop/PrestaShop/milestones{/number}","notifications_url":"https://api.github.com/repos/PrestaShop/PrestaShop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PrestaShop/PrestaShop/labels{/name}","releases_url":"https://api.github.com/repos/PrestaShop/PrestaShop/releases{/id}","deployments_url":"https://api.github.com/repos/PrestaShop/PrestaShop/deployments","created_at":"2012-11-19T16:41:31Z","updated_at":"2016-05-11T10:46:52Z","pushed_at":"2016-05-12T12:18:37Z","git_url":"git://github.com/PrestaShop/PrestaShop.git","ssh_url":"git@github.com:PrestaShop/PrestaShop.git","clone_url":"https://github.com/PrestaShop/PrestaShop.git","svn_url":"https://github.com/PrestaShop/PrestaShop","homepage":"http://www.prestashop.com/","size":311196,"stargazers_count":1792,"watchers_count":1792,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1894,"mirror_url":null,"open_issues_count":416,"forks":1894,"open_issues":416,"watchers":1792,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/PrestaShop/PrestaShop/pulls/5549"},"html":{"href":"https://github.com/PrestaShop/PrestaShop/pull/5549"},"issue":{"href":"https://api.github.com/repos/PrestaShop/PrestaShop/issues/5549"},"comments":{"href":"https://api.github.com/repos/PrestaShop/PrestaShop/issues/5549/comments"},"review_comments":{"href":"https://api.github.com/repos/PrestaShop/PrestaShop/pulls/5549/comments"},"review_comment":{"href":"https://api.github.com/repos/PrestaShop/PrestaShop/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/PrestaShop/PrestaShop/pulls/5549/commits"},"statuses":{"href":"https://api.github.com/repos/PrestaShop/PrestaShop/statuses/68ae1ffa1ef0af57455558875a3478d2d81b5591"}}}}