diff --git a/C4/Creators/Lib.pm b/C4/Creators/Lib.pm index 0a57b598f1..d052427a38 100644 --- a/C4/Creators/Lib.pm +++ b/C4/Creators/Lib.pm @@ -155,7 +155,8 @@ sub get_all_templates { my %params = @_; my @templates = (); my $query = "SELECT " . ($params{'field_list'} ? $params{'field_list'} : '*') . " FROM creator_templates"; - $query .= ($params{'filter'} ? " WHERE $params{'filter'};" : ';'); + $query .= ($params{'filter'} ? " WHERE $params{'filter'} " : ''); + $query .= ($params{'orderby'} ? " ORDER BY $params{'orderby'} " : ''); my $sth = C4::Context->dbh->prepare($query); $sth->execute(); if ($sth->err) { @@ -181,7 +182,8 @@ sub get_all_layouts { my %params = @_; my @layouts = (); my $query = "SELECT " . ($params{'field_list'} ? $params{'field_list'} : '*') . " FROM creator_layouts"; - $query .= ($params{'filter'} ? " WHERE $params{'filter'};" : ';'); + $query .= ($params{'filter'} ? " WHERE $params{'filter'} " : ''); + $query .= ($params{'orderby'} ? " ORDER BY $params{'orderby'} " : ''); my $sth = C4::Context->dbh->prepare($query); $sth->execute(); if ($sth->err) { diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-manage.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-manage.tt index db76c125cf..d685640ded 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-manage.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-manage.tt @@ -78,6 +78,20 @@ }; //]]> + + + +[% INCLUDE 'datatables-strings.inc' %] + + +
[% INCLUDE 'header.inc' %] @@ -99,27 +113,29 @@ [% IF ( table_loop ) %]