Bug 21740: Show @ when editing fixed-length fields on bibliographic frameworks
[koha.git] / admin / columns_settings.pl
index c0c117b..4c87142 100755 (executable)
@@ -24,10 +24,10 @@ my $action = $input->param('action') // 'list';
 
 if ( $action eq 'save' ) {
     my $module = $input->param('module');
-    my @columnids = $input->param("columnid");
+    my @columnids = $input->multi_param("columnid");
     my @columns;
     for my $columnid (@columnids) {
-        next unless $columnid =~ m|^([^_]*)_([^_]*)_(.*)$|;
+        next unless $columnid =~ m|^([^#]*)#([^#]*)#(.*)$|;
         my $is_hidden = $input->param( $columnid . '_hidden' ) // 0;
         my $cannot_be_toggled =
           $input->param( $columnid . '_cannot_be_toggled' ) // 0;