[Koha-bugs] [Bug 4498] Acq always shows '1 suggestions waiting'

bugzilla-daemon at kohaorg.ec2.liblime.com bugzilla-daemon at kohaorg.ec2.liblime.com
Tue May 18 23:18:33 CEST 2010


http://bugs.koha.org/cgi-bin/bugzilla3/show_bug.cgi?id=4498


Garry Collum <gcollum at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |gcollum at gmail.com




--- Comment #1 from Garry Collum <gcollum at gmail.com>  2010-05-18 21:18:33 ---
It looks like <!-- TMPL_IF name="suggestion" --> in acquisitions-menu.inc is
pulling its value from a global variable defined in Auth.pm - suggestion =>
C4::Context->preference("suggestion").  If patron suggestions are turned on you
get a message indicating that there is one suggestion pending, if not you get a
message that indicates that there are no messages.

This could easily be fixed by changing the variable name to something like
'pendingsuggestions' and using the CountSuggestion function in Suggestions.pm
to acquire a value, but does this code need to be in every .pl file whose
template will include acquisitions-menu.inc, or can it be defined as a global
module variable in either Suggestions.pm, or Acquisitions.pm?


-- 
Configure bugmail: http://bugs.koha.org/cgi-bin/bugzilla3/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the Koha-bugs mailing list