When the article table is inserted, I run this code in the article_after_insert:
Code: Select all
$sql = "INSERT INTO article_status (article_id, status, user, created, notes) VALUES (".$data['selectedID'].", 'Draft', '".$memberInfo['username']."', NOW(), 'Initial Entry')";
sql($sql, $eo);
However, the status does not appear in the child table on the article detail view. I can add another status through the web interface and it will appear but the one I inserted with code never does.