[Koha-bugs] [Bug 13632] Use a translateable file instead of the database for managing permission descriptions

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Feb 10 04:41:28 CET 2015


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13632

David Cook <dcook at prosentient.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #35595|0                           |1
        is obsolete|                            |

--- Comment #8 from David Cook <dcook at prosentient.com.au> ---
Created attachment 35761
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=35761&action=edit
Bug 13632 - Use a translateable file instead of the database for managing
permission descriptions

This patch defines a couple of blocks in "permissions.inc", which is
included/processed in member-flags.tt to show the descriptions
for the permissions and sub-permissions.

_TEST PLAN_

Before applying:
1) Look at the descriptions for permissions and subpermissions
2) Open another tab/window and load the same page

Apply the patch

3) Reload the second tab/window
4) Note that the descriptions are exactly the same as before

If you're feeling bold, you can change the text in
`permissions.description` and `userflags.flagdesc` and notice
that the text on the page doesn't change.

However, you should not delete the `permissions.description` column
or change the text to NULL or blank. C4::Auth::get_all_subpermissions()
uses the description for creating a hashref of subpermissions. If it
can't get the column, Koha will explode. If there is nothing in the column,
your subpermissions won't work correctly.

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


More information about the Koha-bugs mailing list