Opened 17 years ago

Closed 17 years ago

Last modified 17 years ago

#241 closed defect (fixed)

SaveData not working properly for multitable dataviews

Reported by: bweaver Owned by: bweaver
Priority: major Milestone: Beta 3
Component: Public Website App. Version: 1.1.3642
Severity: Keywords:
Cc: Database Engine: N/A
Operating System: N/A

Description

When a dataview is defined as having fields that map to more than one table, if the secondary tables (i.e. those not marked with their primary key as being the primary key for the dataview itself) do not have their primary key included in the dataview, the fields belonging to the secondary table(s) should be read only.

e.g. suppose we have a dataview that shows both accession and inventory fields, but does not include a mapping to inventory.inventory_id. It should show inventory fields as being read only even if the dataview definition specifies them not to be read only.

This is a data consistency issue and should not be overridable.

Also, descriptive errors should be thrown when trying to update a read-only field instead of being silently eaten.

Change History (2)

comment:1 by bweaver, 17 years ago

Resolution: → fixed
Status: new → closed

(In [900]) Fixes #241 -- fairly major overhaul of field mapping to accomodate enforcing read only fields.
Fixes #242 -- bug was causing 'Object reference not set to an instance of an object' errors for certain dataview definitions
Fixes #243 -- Tweaked error message text so easier to understand error is given to CT

comment:2 by bweaver, 17 years ago

(In [902]) Refs #241 - bug introduced with bugfix for that ticket which caused dataview imports to fail in certain situations. Trying to update read-only fields (such as created_date) caused new SaveData() code to throw error. Resolved by passing safeUpdates = false to doSave() method so imports can write to any field that is different.

Fixes #244 - tweaked dataview.aspx code to spin through all rows. Also made cache insertion specific to the user so different users uploading dataviews at same time would not see each others uploads.

Fixes #245 - added version number to Title of master page so it shows up on every page of the web site

Note: See TracTickets for help on using tickets.