Skip to content

Commit

Permalink
Added something to remove the same format string from validate to val…
Browse files Browse the repository at this point in the history
…idate description
  • Loading branch information
drewc committed Jan 28, 2012
1 parent ddf67d6 commit c8fda2d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/standard-descriptions/validate.lisp
Expand Up @@ -79,6 +79,13 @@
(attribute-object attribute)
lol::*invalid-objects*)
:key #'car)))
(setf
conditions
(loop with string for c in conditions
:unless (find (validation-condition-format-string (cdr c)) string
:test #'string-equal)
:collect c
:do (push (validation-condition-format-string (cdr c)) string)))
(dolist (c conditions)
(<:div :style "color:red"
(<:as-html
Expand Down

0 comments on commit c8fda2d

Please sign in to comment.