corrected DataForm upgrade script
This commit is contained in:
parent
deaa6c65c0
commit
f7962810db
2 changed files with 10 additions and 1 deletions
|
|
@ -17,6 +17,15 @@ save you many hours of grief.
|
|||
anyone with the right URL to see an RSS feed, even if they do not
|
||||
have permission to view the Collaboration System it came from.
|
||||
|
||||
* The 7.5.11 upgrade contained a bug that didn't import existing
|
||||
Data Form entries properly. The script has been corrected, so if
|
||||
you didn't already upgrade to 7.5.11, there is nothing to worry
|
||||
about. If you already upgraded, the information can be restored
|
||||
from a backup. See
|
||||
http://www.webgui.org/bugs/tracker/data-form-listing-existing-entries-wrong-missing-data
|
||||
for information on how to retrieve this information without having
|
||||
to revert entirely to a past backup.
|
||||
|
||||
|
||||
7.5.11
|
||||
--------------------------------------------------------------------
|
||||
|
|
|
|||
|
|
@ -150,7 +150,7 @@ sub convertDataForm {
|
|||
my $newEntryFieldData = {};
|
||||
my $entryFields = $session->db->read("SELECT * FROM `DataForm_entryData` WHERE assetId=? AND DataForm_entryId=?", [$assetId, $entryData->{DataForm_entryId}]);
|
||||
while (my $entryFieldData = $entryFields->hashRef) {
|
||||
$newEntryFieldData->{ $fieldMapping{ $entryFieldData->{DataForm_fieldId} } } = $entryData->{value};
|
||||
$newEntryFieldData->{ $fieldMapping{ $entryFieldData->{DataForm_fieldId} } } = $entryFieldData->{value};
|
||||
}
|
||||
$entryFields->finish;
|
||||
my $entryJSON = encode_json($newEntryFieldData);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue