- fixed: a bug in Crud where keys being updated would cause a crash
This commit is contained in:
parent
782a4396b5
commit
18b26f8bc0
2 changed files with 2 additions and 1 deletions
|
|
@ -4,6 +4,7 @@
|
|||
- Deprecated WebGUI::Storage::Image. WebGUI::Storage can now do everything WebGUI::Storage::Image can do.
|
||||
- The deprecated use of Graphics::Magick has been eliminated. WebGUI uses Image::Magick exclusively for all image processing functions once again.
|
||||
- fixed: #9147: Misspellings in Account
|
||||
- fixed: a bug in Crud where keys being updated would cause a crash
|
||||
- fixed: #9148: Account: account links do not work
|
||||
- fixed: #9149: Account: default templates do not work right
|
||||
- fixed: Adding a file extension for URLs in the system settings now properly affects newly created Assets. It still does not update existing asset URL's.
|
||||
|
|
|
|||
|
|
@ -465,7 +465,7 @@ sub crud_updateTable {
|
|||
else {
|
||||
$db->write("alter table $tableName add column ".$dbh->quote_identifier($property)." $fieldType $notNullClause $defaultClause");
|
||||
}
|
||||
if ($isKey) {
|
||||
if ($isKey && !$tableFields{$property}{key}) {
|
||||
$db->write("alter table $tableName add index ".$dbh->quote_identifier($property)." (".$dbh->quote_identifier($property).")");
|
||||
}
|
||||
delete $tableFields{$property};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue