#54 new
Brian O

#is_integer{} is not up to date and needs to be fixed

Reported by Brian O | April 23rd, 2010 @ 01:13 AM

Here is a patch that fixes it up:

diff --git a/apps/nitrogen/src/validators/validator_is_integer.erl b/apps/nitrog
index c07a1a6..24f6258 100644
--- a/apps/nitrogen/src/validators/validator_is_integer.erl
+++ b/apps/nitrogen/src/validators/validator_is_integer.erl
@@ -6,9 +6,11 @@
 -include_lib ("wf.hrl").
 -compile(export_all).
 
-render_validator(TriggerPath, TargetPath, Record) -> 
+render_action(Record) ->
+    TriggerPath= Record#is_integer.trigger,
+    TargetPath = Record#is_integer.target,
     Text = wf:js_escape(Record#is_integer.text),
-    validator_custom:render_validator(TriggerPath, TargetPath, #custom { functi
+    validator_custom:render_action(#custom { trigger=TriggerPath, target=Target
     wf:f("v.add(Validate.Numericality, { notAnIntegerMessage: \"~s\", onlyInteg
 
 validate(_, Value) ->

Comments and changes to this ticket

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.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Nitrogen Web Framework for Erlang

People watching this ticket

Pages