Bug 25279: (QA follow-up) Original behaviour
authorTomas Cohen Arazi <tomascohen@theke.io>
Tue, 5 May 2020 21:55:49 +0000 (18:55 -0300)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Tue, 12 May 2020 10:39:55 +0000 (11:39 +0100)
commit64de96c612d844304129b9e3c1d1c57652c9b5dd
treea1b353ae0f611eaa53d2096d6ee3460e590347d4
parent71e3d02ffb5f415e5a03f2b114f107a0ca3a7a3a
Bug 25279: (QA follow-up) Original behaviour

This patch does the following things:
- Uses a call to Koha::Cities->search(*)->count to display the same
  message we displayed before when no city was found/defined (datatable
  not rendered at all).
- Restores the main search box functionality, the passed param is used
  to query on the city name with wildcards on both sides, for (a)
  counting results and for (b) apending to the API call with the same
  behaviour.

The only missing bit from QA is HTML/URI escaping values from cells, but
this is going to happen at DT level most sure.

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
admin/cities.pl
koha-tmpl/intranet-tmpl/prog/en/modules/admin/cities.tt