| Lines 46-55
          my $dbh = C4::Context->dbh;
      
      
        Link Here | 
        
          | 46 | if ( $op eq 'add_form' ) { | 46 | if ( $op eq 'add_form' ) { | 
        
          | 47 |     my $frameworks = Koha::BiblioFrameworks->search( {}, { order_by => ['frameworktext'], } ); | 47 |     my $frameworks = Koha::BiblioFrameworks->search( {}, { order_by => ['frameworktext'], } ); | 
        
          | 48 |     my $framework; | 48 |     my $framework; | 
            
              |  |  | 49 |     my $child_frameworks; | 
        
          | 49 |     if ($frameworkcode) { | 50 |     if ($frameworkcode) { | 
        
          | 50 |         $framework = Koha::BiblioFrameworks->find($frameworkcode); | 51 |         $framework = Koha::BiblioFrameworks->find($frameworkcode); | 
            
              |  |  | 52 |         $child_frameworks = Koha::BiblioFrameworks->search( | 
            
              | 53 |             { parent_frameworkcode => $frameworkcode }, | 
            
              | 54 |             { order_by             => ['frameworktext'], } | 
            
              | 55 |         ); | 
        
          | 51 |     } | 56 |     } | 
        
          | 52 |     $template->param( | 57 |     $template->param( | 
            
              |  |  | 58 |         child_frameworks => $child_frameworks, | 
        
          | 53 |         framework  => $framework, | 59 |         framework  => $framework, | 
        
          | 54 |         frameworks => $frameworks | 60 |         frameworks => $frameworks | 
        
          | 55 |     ); | 61 |     ); |