@@ -134,7 +134,7 @@ function json($tempcallsign, $temptype, $tempband, $tempmode, $tempstation_id =
134134
135135 $ lookupcall =$ this ->get_plaincall ($ callsign );
136136
137- $ return ['partial ' ] = $ this ->partial ($ lookupcall );
137+ $ return ['partial ' ] = $ this ->partial ($ lookupcall, $ band );
138138
139139 $ callbook = $ this ->logbook_model ->loadCallBook ($ callsign , $ this ->config ->item ('use_fullname ' ));
140140
@@ -625,7 +625,7 @@ function view($id) {
625625 $ this ->load ->view ('interface_assets/footer ' );
626626 }
627627
628- function partial ($ id ) {
628+ function partial ($ id, $ band = null ) {
629629 $ this ->load ->model ('user_model ' );
630630 if (!$ this ->user_model ->authorize ($ this ->config ->item ('auth_mode ' ))) { return ; }
631631
@@ -879,7 +879,7 @@ function partial($id) {
879879
880880 if (isset ($ callsign ['callsign ' ]['gridsquare ' ])) {
881881 $ this ->load ->model ('logbook_model ' );
882- $ callsign ['grid_worked ' ] = $ this ->logbook_model ->check_if_grid_worked_in_logbook (strtoupper (substr ($ callsign ['callsign ' ]['gridsquare ' ],0 ,4 )), 0 , $ this -> session -> userdata ( ' user_default_band ' ) )->num_rows ();
882+ $ callsign ['grid_worked ' ] = $ this ->logbook_model ->check_if_grid_worked_in_logbook (strtoupper (substr ($ callsign ['callsign ' ]['gridsquare ' ],0 ,4 )), 0 , $ band )->num_rows ();
883883 }
884884 if (isset ($ callsign ['callsign ' ]['error ' ])) {
885885 $ callsign ['error ' ] = $ callsign ['callsign ' ]['error ' ];
0 commit comments