bug #2090002 [display] Cannot edit row in VIEW
This commit is contained in:
@@ -1935,7 +1935,11 @@ function PMA_getUniqueCondition($handle, $fields_cnt, $fields_meta, $row, $force
|
||||
//
|
||||
// But orgtable is present only with mysqli extension so the
|
||||
// fix is only for mysqli.
|
||||
if (isset($meta->orgtable) && $meta->table != $meta->orgtable) {
|
||||
// Also, do not use the original table name if we are dealing with
|
||||
// a view because this view might be updatable.
|
||||
// (The isView() verification should not be costly in most cases
|
||||
// because there is some caching in the function).
|
||||
if (isset($meta->orgtable) && $meta->table != $meta->orgtable && ! PMA_Table::isView($GLOBALS['db'], $meta->table)) {
|
||||
$meta->table = $meta->orgtable;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user