added custom payment primary key to joins to custom_payment_method_carrier and custom_payment_method_group tables. This fixes the bug
I replaced group by with distinct. The group by expression was not 100% correct and it fails under strict sql mode: only_full_group_by. This is not a problem for thirtybees because it uses forgiving sql mode, but it should be fixed anyway
ERROR 1055 (42000): Expression #11 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'thirtybees.cpml.name' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by
This pull request closes issue #3
There are two changes:
added custom payment primary key to joins to
custom_payment_method_carrier
andcustom_payment_method_group
tables. This fixes the bugI replaced group by with distinct. The group by expression was not 100% correct and it fails under strict sql mode: only_full_group_by. This is not a problem for thirtybees because it uses forgiving sql mode, but it should be fixed anyway