Hello,

when I try to update my receipt type settings (admin/ecsettings/rtypes) I get the following errors on my server running PostgreSQL.

warning: pg_query() [function.pg-query]: Query failed: ERROR: null value in column "allow_payments" violates not-null constraint.
user warning: query: INSERT INTO ec_receipt_types (type, name, description, weight) VALUES ('paypal_pro', 'PayPal Pro', 'Save time. Check out securely. Pay without sharing your financial information.', -8)

I guess that at least the allow_payments, allow_admin_payments, allow_refunds, allow_payto and allow_recurring fields should have 0 as default values.

v4 is shaping up very nicely. You're doing a great job!

CommentFileSizeAuthor
#1 421654.patch2.75 KBwedge

Comments

wedge’s picture

StatusFileSize
new2.75 KB

This patch worked for me.

doq’s picture

Subscribing.

gordon’s picture

Status: Active » Fixed

Thank @wedge for the patch, but NULL is actually a valid option when receipting functions are disabled by the payment gateway module.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.