I’m not sure if this is a bug or I’m doing something wrong, but it seems that whenever I try to use an sc_alert() in the same event as an sc_redir() (e.g onAfterInsert) the sc_redir() fails. My code:
$params = array(
'title' => 'Record Added',
'type' => 'success',
'timer' => '2000',
'showConfirmButton' => false,
'position' => 'top-end',
'toast' => true
);
sc_alert("Customer Linked", $params);
sc_commit_trans();
sc_redir(form_link_customer_blueprint);
Anyone have any thoughts on this?