Skip to content
Snippets Groups Projects
Commit def1e6d3 authored by Danny Auble's avatar Danny Auble
Browse files

fix for trying to make a parent of one's self

parent 4e68cd27
No related branches found
No related tags found
No related merge requests found
......@@ -2421,7 +2421,13 @@ update assoc_table set deleted = deleted - 2 WHERE deleted > 1;
update assoc_table set parent_acct='new parent' where id = 'account id';
*/
if(!strcasecmp(row[MASSOC_ACCT],
assoc->parent_acct)) {
error("You can't make an account be a "
"child of it's self");
xfree(object);
continue;
}
/* first we need to see if we are
* going to make a child of this
* account the new parent. If so we
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment