Consider the following scenario, Sitecore 8.0 rev5
/sitecore/content/mysite/clone-test/source/ /sitecore/content/mysite/clone-test/clones/
Clone the "source" item into the clones folder, so we end up with:
/sitecore/content/mysite/clone-test/clones/clone-of-source1 /sitecore/content/mysite/clone-test/clones/clone-of-source2 /sitecore/content/mysite/clone-test/clones/clone-of-source3
The clones page loops through its children and displays all of their short descriptions
@foreach (var item in items)
{
<p>@item.Fields["Short Description"].Value</p>
}
Is anyone aware of a bug in the cloning mechanism related to retrieving source values? We're having some issues with the following procedure:
On /sitecore/content/mysite/source, add a value (previously blank) to its short description field (multiline text box) and publish.
Expected behavior:
All clones of source (clone-of-source1, etc) should now be showing the updated "Short Description" value from the source
Actual behavior
All clones of source are still displaying an empty value
Update: These templates are inheriting from a base template. Only fields from the base template are not populating.
Update 2: It seems like the only time it works is if there is a default value in the field of the clone source before the clone happens. If it's blank, we don't get the "original value" label next to it, but if it has a value, we do.
Update 3: Behavior only exists when cloning a branch template. I tested with regular templates and it worked fine.
I simplified this to forgo the for-loop and just displayed the value of the item on its rendering, but still no luck.