I noticed when I was duplicating content that if I duplicated a document w/out children, it would clear the alias field (so a document w/ the same doesn’t exist). But when you duplicate a document with children, the children’s alias’s aren’t cleared.
Shouldn’t the clearing take place for parent + children in this case?
Are you using alias paths?
-
☆ A M B ☆
- 24,524 Posts
I’ve noticed this myself; when duplicating the children, only the ’parent’ field is changed:
$_toplevel++;
$rs = $modx->db->select('id', $tblsc, 'parent='.$docid.' AND deleted=0', 'id ASC');
if (mysql_num_rows($rs)) {
while ($row = mysql_fetch_assoc($rs))
duplicateDocument($row['id'], $newparent, $_toplevel);
}
Of course, if you’re using alias paths and duplicate aliases, this would be a "feature". I’ve never worried about it since usually the duplicated documents need to be edited anyway.
Yeah, I’m using aliases, and I have no duplicate aliases enabled.
It’s not a big thing, since I change them anyway, it’s really more of a "shouldn’t it technically do this due to how it’s done otherwise).
Think this would warrant a report in Jira as a minor bug?