Copied to clipboard

Flag this post as spam?

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


  • Matt Taylor 873 posts 2086 karma points
    Jan 27, 2015 @ 12:17
    Matt Taylor
    0

    Property validation not working properly in v7.2.1

    I'm using Umbraco version 7.2.1 assembly: 1.0.5462.37503 and I've place the following regex

    ^([a-zA-Z0-9_\-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([a-zA-Z0-9\-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$

    on my property to validate it as an email address.

    When I'm editing the content and try to 'save & publish' the editor corrcetly highlights the incorrect entry but it gets saved anyway.

    Just navigate to another node and back again and you can see it has populated the field with the incorrect value.

    This is bad.

    On a secondary note, previous versions of Umbarco used to take note of the 'Mandatory' setting before validating.

    Now it seems that just by placing a regex expression on the property it makes it mandatory too.

    I think it was better before.

    Regards, Matt

  • Jan Skovgaard 11280 posts 23678 karma points MVP 10x admin c-trib
    Jan 27, 2015 @ 12:24
    Jan Skovgaard
    0

    Hi Matt

    Sounds like a bug - Do you mind reporting it on the issue tracker if it has not been so already? And if you do so please share the link in here so other who may come across can go straight to the issue and vote it up.

    Cheers, Jan

  • Matt Taylor 873 posts 2086 karma points
    Jan 27, 2015 @ 13:13
    Matt Taylor
    1

    Thanks, raised here.

    The second point I made has already been raised.

Please Sign in or register to post replies

Write your reply to:

Draft