I did a comparison of a new Insert against the one that does not show in the Server Behaviors panel:
// WA DataAssist Insert
if (isset($_POST["Update"]) || isset($_POST["Update_x"])) // Trigger
{
$WA_connection = $PowerCMSConnection;
$WA_table = "pcms2_contents";
$WA_sessionName = "SGDinsertID";
$WA_redirectURL = "";
if (function_exists("rel2abs")) $WA_redirectURL = $WA_redirectURL?rel2abs($WA_redirectURL,dirname(__FILE__)):"";
$WA_keepQueryString = false;
$WA_fieldNamesStr = "ContentGroup|ContentRefID|ContentValue|Status";
$WA_fieldValuesStr = "".((isset($_POST["ContentGroup"]))?$_POST["ContentGroup"]:"") ."" . $WA_AB_Split . "".((isset($_POST["ContentRefID"]))?$_POST["ContentRefID"]:"") ."" . $WA_AB_Split . "".((isset($_POST["ContentValue"]))?$_POST["ContentValue"]:"") ."" . $WA_AB_Split . "".((isset($_POST["selStatus"]))?$_POST["selStatus"]:"") ."";
$WA_columnTypesStr = "',none,''|',none,''|',none,''|none,none,NULL";
$WA_fieldNames = explode("|", $WA_fieldNamesStr);
$WA_fieldValues = explode($WA_AB_Split, $WA_fieldValuesStr);
$WA_columns = explode("|", $WA_columnTypesStr);
$WA_connectionDB = $database_PowerCMSConnection;
mysql_select_db($WA_connectionDB, $WA_connection);
@session_start();
$insertParamsObj = WA_AB_generateInsertParams($WA_fieldNames, $WA_columns, $WA_fieldValues, -1);
$WA_Sql = "INSERT INTO `" . $WA_table . "` (" . $insertParamsObj->WA_tableValues . ") VALUES (" . $insertParamsObj->WA_dbValues . ")";
$MM_editCmd = mysql_query($WA_Sql, $WA_connection) or die(mysql_error());
$_SESSION[$WA_sessionName] = mysql_insert_id($WA_connection);
if ($WA_redirectURL != "") {
$WA_redirectURL = str_replace("[Insert_ID]",$_SESSION[$WA_sessionName],$WA_redirectURL);
if ($WA_keepQueryString && $WA_redirectURL != "" && isset($_SERVER["QUERY_STRING"]) && $_SERVER["QUERY_STRING"] !== "" && sizeof($_POST) > 0) {
$WA_redirectURL .= ((strpos($WA_redirectURL, '?') === false)?"?":"&").$_SERVER["QUERY_STRING"];
}
header("Location: ".$WA_redirectURL);
}
}
?>
Is there added functionality in the default that is hand coded and not recognized by the current version of Data Bridge?
I can manually transfer the new Status insert value etc but it would be nice if all the files were editable in the various behaviors.