Invalid key ':defMacro' when performing validate
Reported by Daniel Parker | June 29th, 2009 @ 05:54 PM | in 2.0 - "Ambidextrous Octopus"
Code:
invoice = QB::Invoice.new(
:ShipDate => Date.today,
:IsToBePrinted => true,
:IsToBeEmailed => false,
:DueDate => Date.today + 1.month,
:CustomerRef => { :ListID => user[:listid] },
#:TemplateRef => { :ListID => " "},
:InvoiceLine => gf_invoice_line
)
if invoice.valid?
invoice.save
end
Not sure exactly what's causing it, but must be the validate routine is looking for a defMacro attribute when there is none available for this object.
Comments and changes to this ticket
-
Daniel Parker June 30th, 2009 @ 03:31 PM
- State changed from new to resolved
Just made attributes not validate for model objects, since they're not enabled for Models anyway.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป