Bug 20071 - Hide error displayed when db user tries to catalog anything
Summary: Hide error displayed when db user tries to catalog anything
Status: RESOLVED DUPLICATE of bug 11590
Alias: None
Product: Koha
Classification: Unclassified
Component: Cataloging (show other bugs)
Version: master
Hardware: All All
: P5 - low normal (vote)
Assignee: Indranil Das Gupta
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-01-23 10:52 UTC by Indranil Das Gupta
Modified: 2018-01-29 00:36 UTC (History)
3 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Indranil Das Gupta 2018-01-23 10:52:49 UTC
When someone is logged in as the db user, attempts to catalog any document, it  throws an exception:

Software error: 
Can't call method "get_effective_marcorgcode" on an undefined value at /home/l2c2technologies/kohaclone/cataloguing/value_builder/marc21_orgcode.pl line 31.

While this is understandable, the error needs to be handled gracefully rather than expose the user to this error screen.
Comment 1 Jonathan Druart 2018-01-23 15:56:12 UTC
Almost everything will explode with the DB user, that's why there is a big warning on the main page.

See bug 11590.

*** This bug has been marked as a duplicate of bug 11590 ***
Comment 2 Liz Rea 2018-01-29 00:36:57 UTC
Also why we put the onboarding tool to allow a superlibrarian to be created at install time. You should probably never, ever, have a reason to log in as this user now.