Bug 12740 - It should not be possible to store empty news
authorMarc Véron <veron@veron.ch>
Sat, 13 Sep 2014 16:10:06 +0000 (18:10 +0200)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Sat, 11 Oct 2014 14:51:53 +0000 (11:51 -0300)
commitef9a552023fde579a1c0aa8ea9d6bcb37b96f09f
tree8cc7155eda5184d0cf3a4a257c7601cf7d6441e5
parent4822f19df62d8f4421d9e44aca5fb5277b791232
Bug 12740 - It should not be possible to store empty news

This patch marks the title field as 'required' and it is not
longer possible to store a news without having at least a title.

To test:
Got to Tools->News
Create news or edit existing news
Field "Title" should have a red label and should be marked as "required"
It should not be possible to save with empty field "Title"

Signed-off-by: Mark Tompsett <mtompset@hotmail.com>
NOTE: Only keeps the user from doing it.
      Fails to handle the fake the url call case.
https://demo.library-admin.kohasystem.ca/cgi-bin/koha/tools/koha-news.pl?op=add&lang=&branch=&title=&from=&to=&number=&new=

Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
koha-tmpl/intranet-tmpl/prog/en/modules/tools/koha-news.tt