Skip to content

Commit

Permalink
-Fixed dumbass bug introduced by my overzealous use of apply
Browse files Browse the repository at this point in the history
  • Loading branch information
ingram committed Apr 7, 2011
1 parent 024df37 commit f1bcb4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion formlets.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
(defmacro validate-form ((origin-fn &key fields general) &body on-success)
`(let ((results (list ,@(loop for field in fields
collect (sym->keyword (car field))
when (apply #'validate-field field) collect it
when (validate-field (car field) (cadr field) (caddr field) (or (cadddr field) general)) collect it
else collect nil))))
(if (all-valid? results)
(progn ,@on-success)
Expand Down

0 comments on commit f1bcb4e

Please sign in to comment.