Skip to content

Commit

Permalink
Fiks av obligatoriske op-gr
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinthon committed Nov 13, 2023
1 parent c44a488 commit 034e532
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions R/modul_admtab.R
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ admtab <- function(input, output, session, reshID, RegData, userRole,

if (input$kun_oblig) {
# tmp <- tmp[tmp$ForlopsID %in% RegData$ForlopsID[RegData$Op_gr %in% 1:7], ]
tmp <- tmp[tmp$Op_gr %in% 1:7, ]
tmp <- tmp[tmp$Op_gr %in% 1:8, ]
}

tmp$SkjemaStatus[tmp$SkjemaStatus==-1] <- 0
Expand Down Expand Up @@ -262,7 +262,7 @@ admtab <- function(input, output, session, reshID, RegData, userRole,
by = 'ForlopsID', all.x = T, suffixes = c('', '_oppf'))

if (input$kun_oblig) {
tmp <- tmp[tmp$Op_gr %in% 1:7, ]
tmp <- tmp[tmp$Op_gr %in% 1:8, ]
}

tmp$SkjemaStatus[tmp$SkjemaStatus==-1] <- 0
Expand Down Expand Up @@ -295,7 +295,7 @@ admtab <- function(input, output, session, reshID, RegData, userRole,

if (input$kun_oblig) {
# tmp <- tmp[tmp$ForlopsID %in% RegData$ForlopsID[RegData$Op_gr %in% 1:7], ]
tmp <- tmp[tmp$Op_gr %in% 1:7, ]
tmp <- tmp[tmp$Op_gr %in% 1:8, ]
}

tmp$SkjemaStatus[tmp$SkjemaStatus==-1] <- 0
Expand Down

0 comments on commit 034e532

Please sign in to comment.