Koha/koha-tmpl/intranet-tmpl/prog/en/modules/tools
Jonathan Druart a233f06574 Bug 17960: Rename opac_news.new with opac_news.content
The field opac_news.new is very confusing and should be renamed.
If you want to access it via Koha::NewsItem you will have trouble:

  use Koha::News;
  my $news_item = Koha::News->next;
  say $news_item->new;

=> Attempt to bless into a reference at /home/vagrant/kohaclone/Koha/Object.pm line 78.

This patchset is going to rename this DB field to opac_news_content instead.

Since the opac_news.new can be used in notice templates, we need to warn the
user during the update DB process that some templates must be updated.

Test plan:
0/ Apply the first patch "Add a test to highlight the issue" and confirm that
the test fail
1/ Apply this second patch
2/ Execute the DB entry
3/ Confirm that you get a warning if at least one of your notice templates is
using opac_news.new
4/ Confirm that the test new pass
5/ Add/update and delete a news
6/ Confirm that the RSS new feed still works as expected

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>

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

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
2017-02-06 17:42:12 +00:00
..
automatic_item_modification_by_age.tt Bug 16239: Update templates 2017-01-13 14:41:22 +00:00
batch_delete_records.tt
batch_record_modification.tt Bug 16239 [CSS Follow-up] Upgrade Bootstrap in the staff client 2017-01-13 14:41:23 +00:00
batchMod-del.tt Bug 16239: Update templates 2017-01-13 14:41:22 +00:00
batchMod-edit.tt Bug 16239: Update templates 2017-01-13 14:41:22 +00:00
batchMod.tt
cleanborrowers.tt
csv-profiles.tt Bug 16239: Update templates 2017-01-13 14:41:22 +00:00
export.tt
holidays.tt Bug 16239: Update templates 2017-01-13 14:41:22 +00:00
import_borrowers.tt
inventory.tt
koha-news.tt Bug 17960: Rename opac_news.new with opac_news.content 2017-02-06 17:42:12 +00:00
letter.tt Bug 16239: Update templates 2017-01-13 14:41:22 +00:00
manage-marc-import.tt Bug 16239: Update templates 2017-01-13 14:41:22 +00:00
marc_modification_templates.tt Bug 16239: Update templates 2017-01-13 14:41:22 +00:00
modborrowers.tt
overduerules.tt
picture-upload.tt
quotes-upload.tt
quotes.tt
scheduler.tt
showdiffmarc.tt
stage-marc-import.tt Bug 16239: Update templates 2017-01-13 14:41:22 +00:00
tools-home.tt
upload-images.tt
upload.tt Bug 17501: Remove Koha::Upload::get from Koha::Upload 2017-01-20 14:20:05 +00:00
viewlog.tt