We are moving to Git Issues for bug tracking in future releases. During transition, content will be in both tools. If you'd like to file a new bug, please create an issue.

Bug 7944 - Using the catalog search from outside of a press context generates a fatal error
Using the catalog search from outside of a press context generates a fatal error
Status: RESOLVED FIXED
Product: OMP
Classification: Unclassified
Component: Search/Indexing
1.0
All All
: P3 normal
Assigned To: PKP Support
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-09-29 16:27 PDT by Jason Nugent
Modified: 2012-09-29 16:35 PDT (History)
0 users

See Also:
Version Reported In:
Also Affects:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jason Nugent 2012-09-29 16:27:51 PDT
In a multiple press installation, it is possible to use the catalog search without being in a press.  The call to getPress in pages/catalog/CatalogHandler returns null in this case, which generates a fatal error when a setting is retrieved.
Comment 1 Jason Nugent 2012-09-29 16:30:03 PDT
Test for press before fetching setting
https://github.com/pkp/omp/commit/11e2817a05cbee25d8c0cb66fdce31952a247b7b
Comment 2 Jason Nugent 2012-09-29 16:35:02 PDT
Test for press before fetching setting
https://github.com/pkp/omp/commit/34f468359a56906a930229124e116e5d252a4367