correct insertion of BLOB field reference
This commit is contained in:
@@ -231,11 +231,12 @@ foreach ($loop_array as $rowcount => $where_clause) {
|
|||||||
$upload_blob_repo = isset($_REQUEST['upload_blob_repo_' . $key]) ? $_REQUEST['upload_blob_repo_' . $key] : NULL;
|
$upload_blob_repo = isset($_REQUEST['upload_blob_repo_' . $key]) ? $_REQUEST['upload_blob_repo_' . $key] : NULL;
|
||||||
|
|
||||||
// checks if an existing blob repository reference should be removed
|
// checks if an existing blob repository reference should be removed
|
||||||
if (isset($remove_blob_repo) && !isset($upload_blob_repo)) {
|
if (isset($remove_blob_repo) && ! isset($upload_blob_repo)) {
|
||||||
$remove_blob_reference = $_REQUEST['remove_blob_ref_' . $key];
|
$remove_blob_reference = $_REQUEST['remove_blob_ref_' . $key];
|
||||||
if (isset($remove_blob_reference)) {
|
if (isset($remove_blob_reference)) {
|
||||||
$val = "''";
|
$val = "''";
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// checks if this field requires a bs reference attached to it
|
// checks if this field requires a bs reference attached to it
|
||||||
if (isset($upload_blob_repo)) {
|
if (isset($upload_blob_repo)) {
|
||||||
@@ -248,7 +249,6 @@ foreach ($loop_array as $rowcount => $where_clause) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if (empty($me_funcs[$key])) {
|
if (empty($me_funcs[$key])) {
|
||||||
$cur_value = $val;
|
$cur_value = $val;
|
||||||
|
Reference in New Issue
Block a user