Skip to content

Commit 7d7b00f

Browse files
committed
Fix creating PDU from template; closes #7123
1 parent efd1446 commit 7d7b00f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

inc/pdu.class.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,4 +350,13 @@ function cleanDBonPurge() {
350350
]
351351
);
352352
}
353+
354+
function prepareInputForAdd($input) {
355+
if (isset($input["id"]) && ($input["id"] > 0)) {
356+
$input["_oldID"] = $input["id"];
357+
}
358+
unset($input['id']);
359+
unset($input['withtemplate']);
360+
return $input;
361+
}
353362
}

0 commit comments

Comments
 (0)