Hello RALF,
During my development I create new template B, by the copy of a previous one A (with some change of name inside only) I respect the following process :
- I edit A and I make the modification of name inside and I save it as Atmp,
- I create the new template B in database,
- I export Atmp as content of B
The end of A template was …
With A, I was waiting on the screen => return submitit(eTemplate,‘exec[nm][edit][]’);; … and it was correct
After the copy process the attributs order is changed and become :
<template content="nm" id="B.index.rows"/>
</template>
With B I have :
return submitit(eTemplate,‘exec[edit][]’);; … And it was not correct, the namespace [nm] was lost
I find out the reason, it was the permutation of the attributs (content, id) of the element <template … , curious IMHO !
I try by a correction of the copy it fails each time. So to correct that, I modify manually the serialization of the template inside the database, I do the following changes :
- the end of A serialization which is correct is : {s:4:“type”;s:8:“template”;s:4:“name”;s:4:“rows”;s:4:“size”;s:2:“nm”;}}
- the end of B serialization which is not correct is : {s:7:“content”;s:2:“nm”;s:4:“name”;s:15:“B.index.rows”;s:4:“type”;s:8:“template”;}},
so I replace the end of B by the end of A, and then everything is OK. It takes me a long time to find out that. Is that a bug ? or a misunderstanting on my side about copy of template ?
Thank Ralf for some hint about
Marcel