Skip to content
Snippets Groups Projects
Commit 2a0ada1d authored by Peter Rotich's avatar Peter Rotich
Browse files

Merge pull request #886 from greezybacon/issue/879


content: Update content_id after creating new content

Reviewed-By: default avatarPeter Rotich <peter@osticket.com>
parents 23ad2790 fe400603
No related branches found
No related tags found
No related merge requests found
......@@ -273,7 +273,11 @@ class Page {
return false;
}
// TODO: Update `content_id`
$sql = 'UPDATE '.PAGE_TABLE.' SET `content_id`=`id`'
.' WHERE id='.db_input($id);
if (!db_query($sql))
return false;
return $id;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment