Koha/koha-tmpl/intranet-tmpl/prog/en
Fridolin Somers d0d54d8a92 Bug 12451 - circulation rule cant be edited if itemtype contains a space character
When an itemtype description contains a space character like " Book"
(often used to set this itemtype as first in sorted lists), the edition
of an existing circulation rule does not work, it selects the default
itemtype. Same for patron category.

It's because the JavaScript code performs a trim on value existing in
table itm = itm.replace(/^\s*|\s*$/g,''); This patch adds trim on select
options in editing line.

Test plan :
- Create an itemtype with a leading or trailling space in description :
  ie " Book"
- Go to cgi-bin/koha/admin/smart-rules.pl
- Create a rule with this itemtype, Unit=hours and Hard due date=Exactly
  on 31/12/2015 (any date)
- Click on Edit on this rule line
  => Without this patch, the default itemtype is selected in edition
     line
  => With this patch, the correct itemtype is selected in edition line

Check others selects are ok :
  - Create a rule with Unit=hours and Hard due date=Exactly on
    31/12/2015 (any date)
  - Click on Edit on this rule line
    => The correct options are selected
Same tests with a patron category containing a leading or trailling space in description

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
2014-07-03 10:47:42 -03:00
..
css Bug 11117: Fix text mixup in facets where RTL text + facet count showed 2014-05-05 00:44:31 +00:00
data Bug 11695 - Fixed typo in marc21_field_008.xml 2014-03-11 14:21:23 +00:00
includes Bug 12150 - Use more javascript string formatting in intranet for translated strings. 2014-07-03 09:52:48 -03:00
js Bug 12150 - Use more javascript string formatting in intranet for translated strings. 2014-07-03 09:52:48 -03:00
lib Bug 12195 - Remove duplicated plugin jquery.dataTables.min.js 2014-05-08 16:18:05 +00:00
modules Bug 12451 - circulation rule cant be edited if itemtype contains a space character 2014-07-03 10:47:42 -03:00
xslt Bug 9075: Rename "type" to "material type" on staff XSLT detail and results 2014-04-08 23:33:15 +00:00
columns.def Bug 9216: (follow-up) Make description in columns.def more specific 2014-04-19 13:35:31 +00:00