Same patch for the authority frameworks/records
Sponsored-by: Orex Digital
Signed-off-by: Michal Denar <black23@gmail.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
my$sth=$dbh->prepare("Select * from auth_subfield_structure where (tagfield like ? and authtypecode=?) order by tagfield");
my$sth=$dbh->prepare("Select * from auth_subfield_structure where (tagfield like ? and authtypecode=?) order by tagfield, display_order");
$sth->execute("$searchstring%",$authtypecode);
my$results=$sth->fetchall_arrayref({});
return(scalar(@$results),$results);
@ -124,7 +124,7 @@ if ($op eq 'add_form') {
closedirDIR;
# build values list
my$sth=$dbh->prepare("select * from auth_subfield_structure where tagfield=? and authtypecode=?");# and tagsubfield='$tagsubfield'");
my$sth=$dbh->prepare("select * from auth_subfield_structure where tagfield=? and authtypecode=? order by display_order");# and tagsubfield='$tagsubfield'");
# my $sth=$dbh->prepare("replace auth_subfield_structure (authtypecode,tagfield,tagsubfield,liblibrarian,libopac,repeatable,mandatory,kohafield,tab,seealso,authorised_value,frameworkcode,value_builder,hidden,isurl)