]> git.koha-community.org Git - koha.git/commit
Bug 16177: Fix tests for ColumnsSsettings.t
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 31 Mar 2016 07:59:29 +0000 (08:59 +0100)
committerBrendan A Gallagher <brendan@bywatersolutions.com>
Fri, 1 Apr 2016 19:08:23 +0000 (19:08 +0000)
commitfc66eedcc429e1eb8175d6e95bc5e921d8b94664
tree48c6551d5fd6388e16bbbc5aad3fb6071246a100
parent73b3968dce3b9bdc95b12eb68fc813c83bcba3e8
 Bug 16177: Fix tests for ColumnsSsettings.t

This failure has been introduced by
  commit 243b797dd11bc0ac1f475195ab765ffbf2220f8b
    Bug 15285: Update common files

This is because the cannot_be_modified key is not always created by
C4::Utils::DataTables::ColumnsSettings subroutines

Test plan:
  prove t/db_dependent/ColumnsSettings.t
should return green
And you can also test a table where the feature is set and a column
cannot be modified from the admin page.

NOTE: Works as described. I was pondering this potential
      solution when I found it in bugzilla.

Signed-off-by: Mark Tompsett <mtompset@hotmail.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Brendan A Gallagher <brendan@bywatersolutions.com>
C4/Utils/DataTables/ColumnsSettings.pm
t/db_dependent/ColumnsSettings.t