Resetting value of a Umbraco.MultiNodeTreePicker on copy won't take.
I'm trying to, on copy, to reset a couple of values. Works like a charm on everything but the Umbraco.MultiNodeTreePicker. Anyone else noticed this? And can someone please tell me why it seems like it's just ignoring it when it comes to that specific type of property?
No other code that uses events, except on publishing, I check some things.
I guess I could try and set the value to something other then null, but not quite sure as to what. empty string brings the same result.
The version I'm using is 7.5.11 btw, don't think I mentioned that before.
Seems to work just fine when I just copy the one page (do not include the descendants). If I do include the decendants it just doesnt seem to get saved.
Or could it be me just not seeing something? Just feels like this should work... :/
Resetting value of a Umbraco.MultiNodeTreePicker on copy won't take.
I'm trying to, on copy, to reset a couple of values. Works like a charm on everything but the Umbraco.MultiNodeTreePicker. Anyone else noticed this? And can someone please tell me why it seems like it's just ignoring it when it comes to that specific type of property?
The code:
Hi MatsStam
It should work, do you have right aliases? Maybe some other code that uses events?
Thanks,
Alex
No other code that uses events, except on publishing, I check some things. I guess I could try and set the value to something other then null, but not quite sure as to what. empty string brings the same result.
The version I'm using is 7.5.11 btw, don't think I mentioned that before.
Seems to work just fine when I just copy the one page (do not include the descendants). If I do include the decendants it just doesnt seem to get saved.
Or could it be me just not seeing something? Just feels like this should work... :/
Actually, I managed to work around it. Changed the event from
To
Then it just started working as expected. :P Still seems to be something amiss, but no matter for my purposes :)
Sorry to bother you all.
Hi Mats
Great finding, glad that you fixed this issue! Have a nice day.
Alex
When it's copied, it means that it's already stored. So you need to save the item.
When using the copying => you do not need to save the item.
is working on a reply...