Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

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

#54

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) ->

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

State: new
Milestone: none
Assigned to: nobody

Activity

  1. Rusty Klophaus
  2. Rusty Klophaus
    Rusty Klophaus
    • Milestone cleared.
    • Milestone order changed from 0 to 0

    June 29th, 2010 @ 08:00 PM

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.