Koha/koha-tmpl/intranet-tmpl/prog/en/modules
Owen Leonard 3ad0f4368f Bug 7493 [REVISED] Deleting a record with comments breaks "Recent Comments"
Adding foreign key constraint on biblio and borrowers:

- delete reviews when bibliographic records are deleted
- set set reviews.borrowernumber to NULL when patron records are deleted.

Before these constraints are set the database update script will
clean up existing instances of these problems by deleting reviews of
deleted biblios and setting to NULL reviews.borrowernumber for deleted
patrons.

In comments moderation, the list of comments will indicate "(deleted patron")
if the review was submitted by a patron who has since been deleted.

In the OPAC display of comments will omit the patron name altogether
if the patron has since been deleted.

To test:

1. CONFIRM THAT THE DATABASE UPDATE RUNS CORRECTLY

Before applying the patch:

 - delete the record for a title which has a review
 - delete a patron who has submitted a review (on a different title).

Viewing /cgi-bin/koha/opac-showreviews.pl should result in an error.

Apply the patch and make sure the database update runs. Viewing
the recent comments page in the OPAC should no longer result in an
error. The title with the comment from a deleted patron should
show no patron name on these pages:

 - Recent comments (opac-showreviews.pl)
 - Recent comments RSS (opac-showreviews.pl?format=rss)
 - Detail page (opac-detail.pl)

Comments from other patrons should show correctly.

2. CONFIRM THAT NEW DELETIONS PERFORM CORRECTLY

After applying the patch:

 - delete the record for a title which has a review
 - delete a patron who has submitted a review (on a different title).

Viewing /cgi-bin/koha/opac-showreviews.pl should NOT result in an error.
The review of the title which you deleted should no longer appear in the
list of recent comments.

The title with the comment from a deleted patron should
show no patron name on these pages:

 - Recent comments (opac-showreviews.pl)
 - Recent comments RSS (opac-showreviews.pl?format=rss)
 - Detail page (opac-detail.pl)

Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
2012-03-08 17:00:51 +01:00
..
acqui Bug 7606: Editing a vendor in acq creates a new vendor 2012-02-27 11:14:48 +01:00
admin signed off Bug 7284: Authority matching improvements 2012-03-07 17:34:11 +01:00
authorities Bug 7127 - Templates must be valid XHTML 2012-02-06 21:38:29 +01:00
basket Bug 7461 - Cart offering to remove items when closing 2012-02-03 15:13:10 +01:00
batch
catalogue Bug 6919 - Follow-up - Implementing XSLTResultsDisplay 2012-03-02 17:35:33 +01:00
cataloguing Bug 7147 - Style Z39.50 search errors according to style patterns 2012-02-10 16:06:01 +01:00
circ Bug 5877 : Offline circulation improvements : upload all files, apply at once 2012-03-02 17:49:35 +01:00
errors
help Bug 7127 - Templates must be valid XHTML 2012-02-06 21:38:29 +01:00
installer
labels Bug 7203: Fixes typo - 'Mange' to 'Manage' in several files. 2012-02-17 10:16:12 +01:00
members Bug 7559: Edit links for patron attributes and message preferences broken 2012-02-27 11:29:23 +01:00
offline_circ Bug 5877 Follow-up for Offline circulation improvements 2012-03-02 17:51:49 +01:00
patroncards Bug 7318: Fixes category display in patroncards Patron Search results. 2012-02-27 18:01:00 +01:00
reports Bug 7406 Fix saved reports display paging inconsistency 2012-02-17 09:57:21 +01:00
reserve Bug 4054 - Double-clicking the 'place hold' button can result in duplicate holds 2012-02-17 19:22:49 +01:00
reviews Bug 7493 [REVISED] Deleting a record with comments breaks "Recent Comments" 2012-03-08 17:00:51 +01:00
rotating_collections Bug 7127 - Templates must be valid XHTML 2012-02-06 21:38:29 +01:00
serials Bug 7523: Improve checks for routing permissions 2012-02-27 18:22:01 +01:00
sms
suggestion
tags Bug 6933 [REVISED] Add a view of titles with a particular tag to the staff client 2012-02-02 09:46:01 +01:00
test
tools Bug 3806 - Holidays table doesn't order by date correcly 2012-01-30 22:25:47 +01:00
virtualshelves Merge remote-tracking branch 'origin/new/bug_7083' 2012-01-18 16:20:26 +01:00
z3950
about.tt Bug 7143 some cleaning 2012-03-02 17:34:10 +01:00
auth.tt
intranet-main.tt