Hello all,
The action "move" document move a document from a location to another.
All its properties are also copied.
However, the property "index" depends of the position of the doc in its
initial location and then become incorrect if there are anothers documents
in the destination location.
Now, I checked the copy document from the view "Document Action". This
action is managed by flowscripts (dhtml.js, actions.js and
contentmodel.js). In this case, there is a function that resolve the good
index.
==>
/**
* Returns the next index for a new resource.
*
* @param parentId path to the collection in which the new resource
will be put
*/
function nextIndex(uriPrefix, parentId) {
if (parentId == undefined)
{
parentId = "";
}
var index;
var result = handleContentModelException(function(){
usingCollectionDo(uriPrefix, parentId, function(collection){
index = collection.nextChildIndex();
});
});
if (result)
{
index = "00000000000" + index;
index = index.substr(index.length - 11, 11);
}
else
{
index = "000000000000";
}
return index;
}
So, are you aware of this problem in the "move" wf action ?
IMO, we must do the same for the move.
Any suggestions, ideas, or advices ?
Thanks for your help !
Regards.
_______________
JC Duchaussee
WCMTech
PI 716
--------------------------
______________________________________________________________________________________________
Smals sluit elke aansprakelijkheid uit in verband met de juistheid, de
volledigheid of het tijdig toekomen van de informatie in deze e-mail. Aan
deze e-mail kunnen geen rechten worden ontleend en deze e-mail houdt in
geen geval een erkenning van welkdanige aansprakelijkheid in.
Dit bericht is alleen bestemd voor de geadresseerde. Indien dit bericht
niet voor u bestemd is, verzoeken wij u dit onmiddellijk aan ons te melden
en het bericht te vernietigen.
Smals décline toute responsabilité quant à l'exactitude, à l'exhaustivité
et au délai de transmission des informations contenues dans cet e-mail.
Aucun droit ne peut être revendiqué sur cet e-mail et cet e-mail
n'implique en aucun cas une reconnaissance de responsabilité, quelle
qu'elle soit.
Ce message s'adresse uniquement au destinataire. Si ce message ne vous est
pas destiné, nous vous prions de nous le signaler immédiatement et de
détruire le message.
********************************************
Hippocms-dev: Hippo CMS development public mailinglist