Copied to clipboard

Flag this post as spam?

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


  • Simon Dingley 1171 posts 2634 karma points
    Mar 10, 2017 @ 17:18
    Simon Dingley
    0

    XPath AutoComplete Not Saving New Values

    I have a site I inherited and is running Umbraco v6.2.6 & uComponents v6.1.1.

    I don't see this behavior locally but remotely when a new value is selected it appears as expected besides the textbox. However, when the page is saved or published the selected items disappears. If you inspect the DOM you can see the following:

    <div class="xpath-auto-complete" data-xpath-autocomplete-id="6905F13E-829D-4827-9B9F-72D5A00E7A9E" data-datatype-definition-id="1196" data-current-id="13474" data-type="c66ba18e-eaf3-4cff-8a22-41b16d66a972" data-min-length="1" data-max-items="0" data-allow-duplicates="False">
        <ul class="propertypane ui-sortable"/>
        <input name="ctl00$body$prop_dayAccommodation$AutoCompleteTextBox" type="text" id="body_prop_dayAccommodation_AutoCompleteTextBox" class="umbEditorTextField ui-autocomplete-input" autocomplete="off" role="textbox" aria-autocomplete="list" aria-haspopup="true">
            <input type="hidden" name="ctl00$body$prop_dayAccommodation$SelectedItems" id="body_prop_dayAccommodation_SelectedItems" value="<XPathAutoComplete Type=&quot;c66ba18e-eaf3-4cff-8a22-41b16d66a972&quot;>
                        <Item Text=&quot;Ijen Resort &amp; Villas&quot; Value=&quot;45711&quot; />
                    </XPathAutoComplete>"></div>
                <span id="body_prop_dayAccommodation_ctl02" style="visibility:hidden;"/>
            </span>
        </div>
    

    So as you can see the value is added to the hidden field but is not added to the <ul> which explains why it does not show after the save/publish action.

    If I reload the frame nothing changes. If change node and go back the original value is shown again before the last selection was made and published.

    I've checked the logs and nothing there and I've checked umbraco.config file and the data has not been updated (as expected). I can confirm that other data changed on the document before the publish action is saved as expected.

    Any ideas what might be going on?

    Cheers, Simon

  • Simon Dingley 1171 posts 2634 karma points
    Mar 16, 2017 @ 15:52
    Simon Dingley
    0

    Breaking News...

    Whilst I've not found a solution I HAVE finally found the cause! This is only affecting items with an ampersand in the node name.

Please Sign in or register to post replies

Write your reply to:

Draft