[Koha-bugs] [Bug 23276] Don't show tags on tag cloud when tagging is disabled

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Nov 21 00:45:07 CET 2019


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23276

David Nind <david at davidnind.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |david at davidnind.com

--- Comment #2 from David Nind <david at davidnind.com> ---
When I apply the patch, but leave TagsEnabled enabled I get this message when
accessing the page:

  response = {
          added: 0,
          deleted: 0,
          errors: 0
  };

When I disable TagsEnabled I get a long page of error messages starting with:

Can't call method "param" on an undefined value at
/kohadevbox/koha/C4/Output.pm line 363
in C4::Output::output_and_exit at /kohadevbox/koha/C4/Output.pm line 363
  360: 
  361: sub output_and_exit {
  362:     my ( $query, $cookie, $template, $error ) = @_;
  363:     $template->param( blocking_error => $error );
  364:     output_html_with_http_headers ( $query, $cookie, $template->output
);
  365:     exit;
  366: }

Hide function arguments

$_[0]   'CGI=HASH(0x559b4b806d98)'
$_[1]   undef
$_[2]   undef
$_[3]   'tags_disabled'

in (eval) at /kohadevbox/koha/opac/opac-tags.pl line 121
  118: }
  119: 
  120: 
  121: output_and_exit( $query, $cookie, $template, 'tags_disabled' )
  122:     unless C4::Context->preference('TagsEnabled');
  123: 
  124: if ($add_op) {

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list