Copied to clipboard

Flag this post as spam?

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


  • Rik Helsen 670 posts 873 karma points
    Aug 23, 2010 @ 17:15
    Rik Helsen
    0

    "Mandatory" doesn't affect datepicker? 4.5.1

    I have added a datepicker to a tab of a document type, and selected the "mandatory" checkbox because i'll need it for sorting later, but i can save any page created with this doctype without entering anything in the publicationdate field?

    I'm still allowed to save & publish the page without entering a date...

    Even stranger, when i output the value of "publicationdate" for a page where it wasn't entered, it outputs today's date instead of an empty value...

    The code i use to output:

    <umbraco:Item field="publicationdate" formatAsDate="true" runat="server"></umbraco:Item>

    Can anyone confirm this behaviour?


  • Ismail Mayat 4511 posts 10092 karma points MVP 2x admin c-trib
    Aug 23, 2010 @ 17:35
    Ismail Mayat
    0

    Rik,

    Making date mandatory doesnt work been like that for a while something todo with load order if i remember rightly think there is work item on codeplex.

    Regards

    Ismail

  • Rik Helsen 670 posts 873 karma points
    Aug 24, 2010 @ 09:27
    Rik Helsen
    0

    Had a look in the issuetracker but couldn't find any related cases, i'll create a new one then...

  • Rik Helsen 670 posts 873 karma points
    Aug 24, 2010 @ 09:47
    Rik Helsen
    0

    Reported this bug here: http://umbraco.codeplex.com/workitem/28646

    Please vote for it if you encounter the same issue.

  • overflew 87 posts 110 karma points
    Nov 09, 2010 @ 04:55
    overflew
    0

    Yeah, this is a bit insane.

    Is someone able to describe why the validation doesn't kick in? Happy to help make a patch.

  • Claushingebjerg 939 posts 2574 karma points
    Nov 12, 2010 @ 11:15
    Claushingebjerg
    0

    this has been driving me crazy for a long time. Vote added to codeplex

  • Niels Hartvig 1951 posts 2391 karma points c-trib
    Dec 06, 2010 @ 09:11
    Niels Hartvig
    0

    I've fixed it for Juno - thanks for reporting and voting!

  • Mike Chambers 636 posts 1253 karma points c-trib
    Feb 03, 2011 @ 01:53
    Mike Chambers
    0

    any chance of a patch for 4.5.2?

  • Thuc Le 4 posts 24 karma points
    Feb 09, 2011 @ 20:18
    Thuc Le
    0

    I am using Umbraco 4.5.2 and I still have the above problem.  Does anyone have any suggestions?

  • Rafe 21 posts 42 karma points
    Feb 22, 2011 @ 18:21
    Rafe
    0

    BUMP!

    Anybody have ANY workaround for this in 4.5.2? I really can't have a document published without this required field being entered. If you can tell me what to change in the source I can modify it and compile if that's what it takes.

  • Rafe 21 posts 42 karma points
    Feb 23, 2011 @ 16:36
    Rafe
    0

    Bump again. Can anybody give me a starting point on where I need to take a look at in version 4.5.2 in order to start making a patch for this bug? Niels, I see that you fixed it in Juno. Can you point me in the right direction?

    Thanks!

  • Tom Fulton 2030 posts 4998 karma points c-trib
    Feb 23, 2011 @ 16:44
    Tom Fulton
    0

    Hi,

    I think the easiest way would probably be to make a custom DatePicker datatype rather than modifying the Umbraco source.  You could base it off Umbraco's current datepicker or use any number of jquery/.NET ones.  See this article on Tim's blog for a simple example of a custom datatype with some javascript:  http://www.nibble.be/?p=62

    Then take a look at this thread for ways to make a custom datatype mandatory (pre 4.6).  http://our.umbraco.org/forum/developers/extending-umbraco/14157-Make-custom-datatype-mandatory 

    -Tom

  • Tim 1193 posts 2675 karma points MVP 4x c-trib
    Feb 28, 2011 @ 13:39
    Tim
    0

    You could get the source off codeplex, and compare the old 4.5.2 code with the Juno one to see what changed in the datatype? You might even just be able to rip the datatype out of Juno and compile it (you'd have to change it's GUID though to avoid confilcts), and add it as an extra DataType.......

Please Sign in or register to post replies

Write your reply to:

Draft