Don't link NULL foreign key values
This commit is contained in:
parent
0830f5ce89
commit
4183f73548
|
@ -370,7 +370,7 @@ if (!$columns && support("table")) {
|
||||||
if (preg_match('~blob|bytea|raw|file~', $field["type"]) && $val != "") {
|
if (preg_match('~blob|bytea|raw|file~', $field["type"]) && $val != "") {
|
||||||
$link = ME . 'download=' . urlencode($TABLE) . '&field=' . urlencode($key) . $unique_idf;
|
$link = ME . 'download=' . urlencode($TABLE) . '&field=' . urlencode($key) . $unique_idf;
|
||||||
}
|
}
|
||||||
if (!$link) { // link related items
|
if (!$link && $val !== null) { // link related items
|
||||||
foreach ((array) $foreign_keys[$key] as $foreign_key) {
|
foreach ((array) $foreign_keys[$key] as $foreign_key) {
|
||||||
if (count($foreign_keys[$key]) == 1 || end($foreign_key["source"]) == $key) {
|
if (count($foreign_keys[$key]) == 1 || end($foreign_key["source"]) == $key) {
|
||||||
$link = "";
|
$link = "";
|
||||||
|
|
|
@ -3,6 +3,7 @@ Fix compiled version of Elasticsearch
|
||||||
Don't use type=number if a SQL function is used
|
Don't use type=number if a SQL function is used
|
||||||
Disable highlighting in textareas with long texts
|
Disable highlighting in textareas with long texts
|
||||||
Don't autofocus SQL textarea in Firefox
|
Don't autofocus SQL textarea in Firefox
|
||||||
|
Don't link NULL foreign key values
|
||||||
MongoDB: Count tables, display ObjectIds, sort, limit, offset, count rows
|
MongoDB: Count tables, display ObjectIds, sort, limit, offset, count rows
|
||||||
Elasticsearch: Create and drop DB, drop table
|
Elasticsearch: Create and drop DB, drop table
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue