Koha-clms/Koha
Jonathan Druart bb91b7a8a6 Bug 24398: Fix 500 when viewing a single news item at the OPAC
Test plan:
0. Set the NewsAuthorDisplay preference to 'OPAC' or 'Both OPAC and staff client.'
1. Open the OPAC main page and click on an individual news item
Without this patch you get an ugly 500
    Template process failed: undef error - The method Koha::NewsItem->author_title is not covered by tests!
With this patch applied you see the news with the author's info

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit c596f450d9)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit 9266846b91)

Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
(cherry picked from commit 1be8ada8a7)
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
2021-03-19 01:00:12 +01:00
..
Account Bug 23805: (RM follow-up) Add credit_type relation to Koha::Account::Line 2019-11-20 11:56:41 +00:00
Acquisition Bug 23927: Do not copy invoiceid for a new duplicated order 2019-11-27 09:18:27 +00:00
ArticleRequest
…
Authority
…
Biblio Bug 24827: Standardise on 'UTF-8' as the encoding name 2020-04-03 18:13:57 +00:00
BiblioUtils Bug 24827: Specify UTF-8 as encoding in new_from_xml() 2020-04-03 18:14:07 +00:00
Cache
…
Cash Bug 23321: Allow setting of branch default 2019-09-23 11:39:22 +01:00
Charges Bug 24259: Handle non existing default circ rule in Charges::Fees 2020-01-03 22:23:32 +00:00
Checkouts Bug 27004: Prevent claim resolution to fail 2021-01-15 02:02:38 +01:00
Club Bug 27333: Throw the right exceptions 2021-02-09 00:19:41 +01:00
Config Bug 15494: (follow-up) Move yaml syspref code to its own sub in SySpref object 2018-11-07 21:39:39 +00:00
Edifact Bug 18267: Refactored Edifact Price Calculations 2020-12-09 21:24:47 +01:00
Exceptions Bug 14697: Introduce Koha::Checkouts::ReturnClaim(s) 2019-10-31 12:03:33 +00:00
Exporter Bug 22721: Remove frameworkcode parameter in GetMarcFromKohaField calls 2019-07-15 11:28:08 +01:00
ExternalContent Bug 21082: Update OverDrive authentication method 2018-10-09 11:04:23 +00:00
Filter/MARC Bug 25019: Make the ViewPolicy filter initialization standard 2020-05-01 17:37:54 +00:00
Illrequest Bug 23712: Silence warns from Koha/Illrequest/Logger.pm 2019-10-21 09:43:17 +01:00
Indexer
…
Item Bug 18072: Add Koha objects for Branch Transfer Limit 2018-07-18 17:29:03 +00:00
Library Bug 21910: Does not deal with call context, ->search does already 2018-12-11 19:11:34 +00:00
List Bug 19524: Share patron lists between staff 2018-07-18 16:49:29 +00:00
MetadataRecord Bug 21872: Remove duplicate modulo condition in authorities iterator 2019-05-10 12:31:49 +00:00
Middleware Bug 25950: Remove <client> in X-Forwarded-For from proxy tests 2020-07-31 01:26:38 +12:00
Misc
…
Notice
…
Number Bug 18736: (follow-up) Fix missing rounding and bad formatting 2019-03-21 16:29:06 +00:00
OAI/Server Bug 24809: (QA follow-up) Add prefix to prevent disambiguity 2020-03-31 22:08:53 +00:00
Object Bug 15774: Remove unecessary returned value for ->delete 2019-03-07 20:37:06 +00:00
Objects Bug 23599: Avoid exploding in search_with_library_limits when no library is passed 2019-09-12 16:00:41 +01:00
Old Bug 21432: (bug 20899 follow-up) Fix patron's name display for deleted patrons 2018-10-03 17:18:44 +00:00
Patron Bug 24840: [19.11.x] Replace DateTime->now with dt_from_string 2020-05-07 17:17:12 +00:00
Patrons Bug 27586: Rollback should be before return statement 2021-02-21 16:18:24 +01:00
Plugins Bug 26434: Fix plugin dirs addition to @INC 2020-10-20 14:08:32 +13:00
QueryParser/Driver Bug 20078: (QA follow-up) Correct attribute in PQF.pm 2018-11-06 12:22:54 +00:00
REST Bug 27179: Misspelling of Method in REST API files 2021-02-08 21:58:31 +01:00
RecordProcessor
…
SMS
…
Schema Bug 18050: Add relation alias to schema 2020-11-17 17:52:00 +13:00
SearchEngine Bug 27252: Add deprecation warning, cross_fields pref, and add version to ES info 2021-01-17 20:45:10 +01:00
Serial
…
Sitemapper Bug 24840: [19.11.x] Replace DateTime->now with dt_from_string 2020-05-07 17:17:12 +00:00
Subscription Bug 17047: add a dedicated page for Mana setup 2019-01-23 14:39:26 +00:00
SuggestionEngine Bug 14457: (QA follow-up) Fix POD 2019-04-16 13:17:34 +00:00
Tags Bug 21846: Add Koha::Tags::Approval(s) and Koha::Tags::Index(es) 2019-03-15 12:27:44 +00:00
Template/Plugin Bug 24068: (RM follow-up) Enhance the POD 2019-11-22 14:57:46 +00:00
Util Bug 23324: (QA follow-up) Typo and remove unneeded use statement 2019-08-16 12:27:01 +01:00
XSLT Bug 23290: [RMaint version] Mitigate XML/XSLT vulnerabilities 2020-02-20 23:37:20 +00:00
Z3950Responder Bug 25277: Don't specify a field in query if none passed 2020-05-19 22:57:25 +00:00
pdfformat Bug 25507: Fix table in basket group PDF German 2-pages 2020-06-19 15:45:28 +12:00
Account.pm Bug 24542: (bug 23049 follow-up) Add missing use statement in Koha::Account 2020-02-10 23:17:17 +00:00
ActionLog.pm Bug 22363: (follow-up) Fix pod 2019-03-11 11:22:01 +00:00
ActionLogs.pm Bug 22363: (follow-up) Fix pod 2019-03-11 11:22:01 +00:00
AdditionalField.pm Bug 15774: Add POD and license notices 2019-03-07 20:37:05 +00:00
AdditionalFieldValue.pm Bug 22934: Add missing use statement 2019-05-23 14:43:16 +00:00
AdditionalFieldValues.pm Bug 15774: (follow-up) Address QA issues 2019-03-07 20:37:05 +00:00
AdditionalFields.pm Bug 15774: Add POD and license notices 2019-03-07 20:37:05 +00:00
ApiKey.pm
…
ApiKeys.pm
…
ArticleRequest.pm Bug 23384: Fix use statement order for ArticleRequest::Status 2020-04-02 16:22:10 +00:00
ArticleRequests.pm Bug 23384: Fix use statement order for ArticleRequest::Status 2020-04-02 16:22:10 +00:00
AudioAlert.pm
…
AudioAlerts.pm
…
AuthUtils.pm Bug 20370: Misleading comment for bcrypt - #encrypt it; Instead it should be #hash it 2020-05-05 20:41:34 +00:00
AuthorisedValue.pm Bug 23272: Make Koha::AuthorisedValue use Koha::Object::Limit::Library 2019-09-13 08:04:05 +01:00
AuthorisedValueCategories.pm
…
AuthorisedValueCategory.pm
…
AuthorisedValues.pm
…
Authorities.pm
…
Authority.pm
…
Biblio.pm Bug 25913: Prevent get_coins to crash if record does not have title 2020-10-27 17:35:41 +13:00
BiblioFramework.pm
…
BiblioFrameworks.pm
…
BiblioUtils.pm Bug 21872: Remove duplicate modulo condition in authorities iterator 2019-05-10 12:31:49 +00:00
Biblioitem.pm
…
Biblioitems.pm
…
Biblios.pm
…
Cache.pm Bug 13193: Make Memcached usage fork safe 2020-03-05 23:49:57 +00:00
Caches.pm
…
Calendar.pm Bug 26000: Make exception_holidays cache with branch in key 2020-08-19 17:32:57 +12:00
Checkout.pm Bug 24840: [19.11.x] Replace DateTime->now with dt_from_string 2020-05-07 17:17:12 +00:00
Checkouts.pm Bug 24840: [19.11.x] Replace DateTime->now with dt_from_string 2020-05-07 17:17:12 +00:00
CirculationRule.pm Bug 18887: Fix POD c/p issues 2018-10-03 17:58:16 +00:00
CirculationRules.pm Bug 22679: Delete related CirculationRules when Removing IssuingRule 2019-04-24 10:35:38 +00:00
Cities.pm
…
City.pm Bug 23770: Add to_api_mapping method to Koha::City 2019-10-21 10:03:53 +01:00
ClassSortRule.pm
…
ClassSortRules.pm
…
ClassSource.pm
…
ClassSources.pm
…
ClassSplitRule.pm Bug 15836: Handle non-existent regexs 2018-11-13 15:18:22 +00:00
ClassSplitRules.pm Bug 15836: Add the ability to defined custom methods to split call number in labels 2018-11-13 15:18:22 +00:00
Club.pm Bug 19809: Re-allow to call Koha::Objects::find in list context 2020-02-11 19:27:34 +00:00
Clubs.pm
…
Config.pm
…
CsvProfile.pm
…
CsvProfiles.pm
…
Database.pm Bug 26639: Add auto_savepoint to DBIC connection 2020-11-17 18:17:32 +13:00
DateUtils.pm Bug 25617: (bug 25133 follow-up) 12 PM is not 24 but 0 2020-06-12 04:01:58 +00:00
EDI.pm Bug 18267: Refactored Edifact Price Calculations 2020-12-09 21:24:47 +01:00
Edifact.pm
…
Email.pm Bug 24826: Remove warnings from Sendmail 2020-05-01 17:40:24 +00:00
Exceptions.pm Bug 26518: Raise exception if the insert failed 2020-12-16 18:56:49 +01:00
ExternalContent.pm Bug 17602: Koha::ExternalContent->koha_patron() will retutn undef rather than die if user not logged in 2018-10-01 13:56:38 +00:00
FrameworkPlugin.pm Bug 22721: Remove frameworkcode parameter in GetMarcFromKohaField calls 2019-07-15 11:28:08 +01:00
Hold.pm Bug 25535: Hold API mapping maps cancellationdate to cancelation_date, but it should be cancellation_date 2020-05-20 21:27:17 +00:00
Holds.pm
…
I18N.pm Bug 25517: Look in all possible places for MO files 2020-06-12 01:23:06 +00:00
Illcomment.pm Bug 18591: (follow-up) Add more POD 2018-10-27 13:15:59 +00:00
Illcomments.pm Bug 18591: Fix pluralization of type 2018-10-27 15:53:34 +00:00
Illrequest.pm Bug 24840: [19.11.x] Replace DateTime->now with dt_from_string 2020-05-07 17:17:12 +00:00
Illrequestattribute.pm
…
Illrequestattributes.pm
…
Illrequests.pm
…
IssuingRule.pm Bug 18928: (bug 22679 follow-up) Do not remove all rules along with the issuing rule 2019-07-01 14:58:13 +01:00
IssuingRules.pm Bug 17530: (QA follow-up) Fix caching error 2018-09-07 13:16:10 +00:00
Item.pm Bug 25006: Make Koha::Item->as_marc_field skip undefined subfields 2020-04-28 20:29:28 +00:00
ItemType.pm Bug 15497: Limit itemtypes by branch in additem.pl 2019-09-12 16:31:06 +01:00
ItemTypes.pm Bug 15497: (QA follow-up) Fix call in search_with_localization 2019-09-12 16:31:06 +01:00
Items.pm Bug 27580: Handle NULL values correctly in Koha::Items->filter_by_visible_in_opac 2021-02-10 01:55:47 +01:00
KeyboardShortcut.pm Bug 21411: Advanced cataloging editor - rancor - Allow configuration of Keyboard 2019-05-10 18:59:39 +00:00
KeyboardShortcuts.pm Bug 21411: Address QA concerns 2019-05-10 18:59:39 +00:00
Libraries.pm Bug 7614: (QA follow-up) Remove unused variable 2019-01-25 16:07:07 +00:00
Library.pm Bug 23843: Add mapping to Koha::Library 2019-10-23 18:03:11 +01:00
Linktracker.pm
…
Localization.pm
…
Localizations.pm
…
Logger.pm Bug 13937: Add a Z39.50 daemon that can inject item status MARC subfields 2019-10-08 14:39:30 +01:00
Manual.pm Bug 25576: Add link to the manual for the ILL module 2020-06-22 16:09:20 +12:00
MarcSubfieldStructure.pm
…
MarcSubfieldStructures.pm
…
MetaSearcher.pm Bug 18051: Set UTF8 Flag for record searches/imports from rancor 2020-11-17 18:12:32 +13:00
MetadataIterator.pm
…
MetadataRecord.pm
…
MoreUtils.pm
…
News.pm
…
NewsItem.pm Bug 24398: Fix 500 when viewing a single news item at the OPAC 2021-03-19 01:00:12 +01:00
OAuth.pm Bug 20612: (QA follow-up) Fix typo in method POD 2018-05-09 12:56:01 -03:00
OAuthAccessToken.pm
…
OAuthAccessTokens.pm
…
Object.pm Bug 24788: Remove autoloaded column accessors in Koha::Object->store 2020-04-02 16:18:17 +00:00
Objects.pm Bug 19809: Re-allow to call Koha::Objects::find in list context 2020-02-11 19:27:34 +00:00
Patron.pm Bug 23634: Add is_superlibrarian method to Koha::Patron 2020-08-25 15:29:37 +12:00
Patrons.pm Bug 25683: (follow-up) Use COALESCE instead of IFNULL 2020-08-17 10:36:46 +12:00
Plugins.pm Bug 25549: Add error reporting to plugins-home 2020-11-17 17:12:45 +13:00
RDF.pm Bug 18586: Create module to mint RDF subject URIs 2018-08-09 12:11:16 +00:00
Rating.pm
…
Ratings.pm
…
RecordProcessor.pm Bug 25008: Overload Koha::RecordProcessor->options to update filters 2020-05-05 20:39:04 +00:00
RefundLostItemFeeRules.pm Bug 18930: (RM follow-up) Restore primary key find 2019-07-16 13:53:54 +01:00
Report.pm Bug 17047: SQL reports management with Mana-KB 2019-01-23 14:39:26 +00:00
Reports.pm Bug 17047: SQL reports management with Mana-KB 2019-01-23 14:39:26 +00:00
Review.pm
…
Reviews.pm
…
Schema.pm
…
Script.pm Bug 22600: Set 'commandline' interface appropriately 2019-04-10 19:43:11 +00:00
SearchEngine.pm
…
SearchField.pm Bug 20589: Add field boosting and use query_string fields parameter 2019-10-02 13:28:57 +01:00
SearchFields.pm Bug 20589: Add field boosting and use query_string fields parameter 2019-10-02 13:28:57 +01:00
SearchMarcMap.pm
…
SearchMarcMaps.pm
…
Serial.pm
…
Serials.pm
…
SharedContent.pm Bug 23075: (follow-up) Dissallow transparent redirects 2019-11-06 17:05:10 +00:00
SimpleMARC.pm Bug 22571: Handle control fields in MMT for conditionals 2019-06-21 13:12:46 +01:00
Sitemapper.pm
…
StockRotationItem.pm Bug 24840: [19.11.x] Replace DateTime->now with dt_from_string 2020-05-07 17:17:12 +00:00
StockRotationItems.pm Bug 11897: Stockrotation 2018-10-09 15:46:05 +00:00
StockRotationRota.pm Bug 11897: Stockrotation 2018-10-09 15:46:05 +00:00
StockRotationRotas.pm Bug 22566: Fix some more issues 2019-06-25 17:01:11 +01:00
StockRotationStage.pm Bug 11897: Stockrotation 2018-10-09 15:46:05 +00:00
StockRotationStages.pm Bug 11897: Stockrotation 2018-10-09 15:46:05 +00:00
Subscription.pm Bug 19809: Re-allow to call Koha::Objects::find in list context 2020-02-11 19:27:34 +00:00
Subscriptions.pm Bug 15774: Use Koha::Object(s) for additional fields 2019-03-07 20:37:05 +00:00
Suggestion.pm
…
SuggestionEngine.pm
…
Suggestions.pm
…
Tag.pm Bug 21846: Add Koha::Tags::Approval(s) and Koha::Tags::Index(es) 2019-03-15 12:27:44 +00:00
Tags.pm Bug 21846: Add Koha::Tags::Approval(s) and Koha::Tags::Index(es) 2019-03-15 12:27:44 +00:00
Token.pm Bug 21998: Throw exception on bad pattern 2019-03-22 20:21:44 +00:00
UploadedFile.pm Bug 20727: (QA follow-up) Fix Upload.t and Plugins.t 2018-06-22 16:10:10 +00:00
UploadedFiles.pm
…
Uploader.pm Bug 19633: Use alphanumeric error codes in upload 2018-08-10 10:10:46 +00:00
Virtualshelf.pm
…
Virtualshelfcontent.pm
…
Virtualshelfcontents.pm
…
Virtualshelfshare.pm Bug 11943: Prevent double accepts in Koha::Virtualshelfshare 2018-05-11 10:52:43 -03:00
Virtualshelfshares.pm
…
Virtualshelves.pm Bug 21612: Remove incorrect GROUP BY's from Koha::VirtualShelves 2018-10-26 16:31:25 +00:00
XSLT_Handler.pm Bug 23290: [RMaint version] Mitigate XML/XSLT vulnerabilities 2020-02-20 23:37:20 +00:00
Z3950Responder.pm Bug 13937: (RM follow-up) Set working directory for daemon mode. 2019-10-15 13:48:28 +01:00
Z3950Server.pm
…
Z3950Servers.pm
…