Bug 14510: (QA followup) Fix bug with unmapped columns
Fall back more smoothly when items subfields are not mapped to a kohafield. Note, however, that this development does not allow applying default settings to subfields that aren't mapped. A note has been added to the columns settings page, as there is no known workaround for this. Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by: Tomas Cohen Arazi <tomascohen@unc.edu.ar>
This commit is contained in:
parent
13fadc06da
commit
cd104f0a90
|
|
@ -10,7 +10,8 @@ function KohaTable(selector, dt_parameters, columns_settings) {
|
|||
var excluded_ids = [];
|
||||
$(columns_settings).each( function() {
|
||||
var named_id = $( 'thead th[data-colname="' + this.columnname + '"]', selector ).index( 'th' );
|
||||
var used_id = named_id == -1 ? id : named_id;
|
||||
var used_id = this.columnname ? named_id : id;
|
||||
if ( used_id == -1 ) return;
|
||||
|
||||
if ( this['is_hidden'] == "1" ) {
|
||||
hidden_ids.push( used_id );
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@
|
|||
[% IF tables.$pagename.keys and tables.$pagename.keys.size > 0 %]
|
||||
[% FOR tablename IN tables.$pagename.keys.sort %]
|
||||
[% IF pagename == 'additem' AND tablename == 'itemst' %]
|
||||
<div class="alert">Saving changes to column visibility here will override framework visibility settings for the table of items.</div>
|
||||
<div class="alert">Changes made below will only apply to item subfields that are <a href="/cgi-bin/koha/admin/koha2marclinks.pl">mapped</a> to the <code>items</code> table.</div>
|
||||
[% END %]
|
||||
<table>
|
||||
<caption>
|
||||
|
|
|
|||
Loading…
Reference in New Issue