Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Dan Evans 631 posts 1018 karma points
    May 02, 2013 @ 11:41
    Dan Evans
    0

    Number of Days does not accept certain numbers

    I've installed this on Umbraco 6.0.3 and it works fine except the "number of days" option only accepts numbers starting in 1, 2 or 3 so 7,45 etc are rejected even if they are less than 365.

  • Dan Evans 631 posts 1018 karma points
    May 02, 2013 @ 11:46
    Dan Evans
    101

    The fix is to update the RangeValidator so that Type="integer"

    <asp:RangeValidator Type="integer" ControlToValidate="ChooseDays" MinimumValue="1" MaximumValue="365"

     EnableClientScript="true" runat="server" Display="Dynamic">

    Must be between 1 and 365!

    </asp:RangeValidator>

  • Josh Townson 67 posts 162 karma points
    May 02, 2013 @ 22:50
    Josh Townson
    0

    Hi Dan,

    glad to see you found and posted the fix. I had forgotten I added this to our. I will try and remember to upload the fixed package tomorrow! I think I changed it about 18 months ago. oops. Then again, there were some issues with this and umbraco 4.7 which I never investigated. It seemed that some sessions were not showing in the table - which rendered the simple solution rather powerless :( Do be careful of this running in version 6 - I haven't even managed to get a site together in v6 yet!

    /Josh

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies