@@ -, +, @@ --- C4/Items.pm | 5 +---- .../bug_23352-add_ccode_column_to_subscriptions_table.pl | 0 .../prog/en/modules/serials/subscription-add.tt | 5 +++-- .../prog/en/modules/serials/subscription-detail.tt | 2 +- 4 files changed, 5 insertions(+), 7 deletions(-) mode change 100644 => 100755 installer/data/mysql/atomicupdate/bug_23352-add_ccode_column_to_subscriptions_table.pl --- a/C4/Items.pm +++ a/C4/Items.pm @@ -1677,10 +1677,7 @@ sub PrepareItemrecordDisplay { && $defaultvalues && $defaultvalues->{'ccode'} ) { - if ( $itemrecord and $defaultvalues and not $itemrecord->subfield($tag,$subfield->{subfield}) ) { - # if the item record exists, only use default value if the item has no ccode - $defaultvalue = $defaultvalues->{ccode}; - } elsif ( !$itemrecord and $defaultvalues ) { + if ( !$itemrecord and $defaultvalues ) { # if the item record *doesn't* exists, always use the default value $defaultvalue = $defaultvalues->{ccode}; } --- a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-add.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-add.tt @@ -200,10 +200,11 @@ fieldset.rows table { clear: none; margin: 0; }
  • - +