Copied to clipboard

Flag this post as spam?

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


  • Ismail Mayat 4511 posts 10090 karma points MVP 2x admin c-trib
    Sep 04, 2012 @ 11:25
    Ismail Mayat
    0

    XPath DropDownList issue

    I am using umbraco 4.7.2 and ucomponents 3.1.0. The xpath dropdownlist is giving me a little issue. When i select an item then save and publish the value i selected is not saved.  However if i click save it is saved. No errors in log.

    Anyone else had this issue?

    Regards

    Ismail

  • Lee Kelleher 4020 posts 15802 karma points MVP 13x admin c-trib
    Sep 04, 2012 @ 17:16
    Lee Kelleher
    0

    Hi Ismail,

    I haven't heard of that issue before. Seems strange that the Save button works, but Publishing doesn't. Wondering if there is anything else at play here?

    Cheers, Lee.

  • Ismail Mayat 4511 posts 10090 karma points MVP 2x admin c-trib
    Sep 04, 2012 @ 17:18
    Ismail Mayat
    0

    lee,

    its a bit of an edge case scenario. Have sent hendy an email gist of it is:

    "Its not Node.GetCurrent.  Looks like we have discovered edge case for uQuery in cloning site.  The cloned site is cloned from site that is not published so the current node you are looking at is not published.  It then traverses up the tree and gets the dropdown data from the original site you cloned not the one you are in. So I have updated the code in xpath dropdown so that we get the node id from the query string and if the node factory node is null get the document.

    I don't think its clean but it works.  Also changes are such that they are isolated so if node is published we follow same old way of doing things.  Also from xpathdropdown i am calling overloaded methods becuase uquery stuff no doubt is used elsewhere and I didnt want to possibly break anything that already works."

    I have a custom build working as in rush. However I will try and touch base with Hendy and between us come up with patch.

    Regards

    Ismail

     

Please Sign in or register to post replies

Write your reply to:

Draft