bug #1451426, edit breaks protected BLOB field, changes it from NULL to empty string
This commit is contained in:
@@ -5,6 +5,10 @@ phpMyAdmin - ChangeLog
|
|||||||
$Id$
|
$Id$
|
||||||
$Source$
|
$Source$
|
||||||
|
|
||||||
|
2006-05-26 Marc Delisle <lem9@users.sourceforge.net>
|
||||||
|
* tbl_change.php: bug #1451426, edit breaks protected BLOB field,
|
||||||
|
changes it from NULL to empty string
|
||||||
|
|
||||||
2006-05-23 Marc Delisle <lem9@users.sourceforge.net>
|
2006-05-23 Marc Delisle <lem9@users.sourceforge.net>
|
||||||
* tbl_change.php, tbl_replace.php: bug #1438999, updating a multi-table
|
* tbl_change.php, tbl_replace.php: bug #1438999, updating a multi-table
|
||||||
view
|
view
|
||||||
|
@@ -565,19 +565,19 @@ foreach ($loop_array AS $vrowcount => $vrow) {
|
|||||||
}
|
}
|
||||||
} // end if ($cfg['ShowFunctionFields'])
|
} // end if ($cfg['ShowFunctionFields'])
|
||||||
|
|
||||||
|
|
||||||
// The null column
|
// The null column
|
||||||
// ---------------
|
// ---------------
|
||||||
echo ' <td>' . "\n";
|
echo ' <td>' . "\n";
|
||||||
if (!(($cfg['ProtectBinary'] && $is_blob) || ($cfg['ProtectBinary'] == 'all' && $is_binary))
|
if ($row_table_def['Null'] == 'YES') {
|
||||||
&& $row_table_def['Null'] == 'YES') {
|
|
||||||
|
|
||||||
echo ' <input type="hidden" name="fields_null_prev' . $vkey . '[' . urlencode($field) . ']"';
|
echo ' <input type="hidden" name="fields_null_prev' . $vkey . '[' . urlencode($field) . ']"';
|
||||||
if ($real_null_value && !$first_timestamp) {
|
if ($real_null_value && !$first_timestamp) {
|
||||||
//echo ' checked="checked"';
|
|
||||||
echo ' value="on"';
|
echo ' value="on"';
|
||||||
}
|
}
|
||||||
echo ' />' . "\n";
|
echo ' />' . "\n";
|
||||||
|
|
||||||
|
if (!(($cfg['ProtectBinary'] && $is_blob) || ($cfg['ProtectBinary'] == 'all' && $is_binary)) ) {
|
||||||
|
|
||||||
echo ' <input type="checkbox" tabindex="' . ($tabindex + $tabindex_for_null) . '"'
|
echo ' <input type="checkbox" tabindex="' . ($tabindex + $tabindex_for_null) . '"'
|
||||||
. ' name="fields_null' . $vkey . '[' . urlencode($field) . ']"';
|
. ' name="fields_null' . $vkey . '[' . urlencode($field) . ']"';
|
||||||
if ($real_null_value && !$first_timestamp) {
|
if ($real_null_value && !$first_timestamp) {
|
||||||
@@ -601,7 +601,12 @@ foreach ($loop_array AS $vrowcount => $vrow) {
|
|||||||
$onclick .= '\'' . urlencode($field) . '\', \'' . md5($field) . '\', \'' . $vkey . '\'); this.checked = true}; return true" />' . "\n";
|
$onclick .= '\'' . urlencode($field) . '\', \'' . md5($field) . '\', \'' . $vkey . '\'); this.checked = true}; return true" />' . "\n";
|
||||||
echo $onclick;
|
echo $onclick;
|
||||||
} else {
|
} else {
|
||||||
echo ' ' . "\n";
|
echo ' <input type="hidden" name="fields_null' . $vkey . '[' . urlencode($field) . ']"';
|
||||||
|
if ($real_null_value && !$first_timestamp) {
|
||||||
|
echo ' value="on"';
|
||||||
|
}
|
||||||
|
echo ' />' . "\n";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
echo ' </td>' . "\n";
|
echo ' </td>' . "\n";
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user