diff --git a/application/views/lehre/lehrauftrag/acceptLehrauftrag.php b/application/views/lehre/lehrauftrag/acceptLehrauftrag.php index 1c039d42a..201ede78b 100644 --- a/application/views/lehre/lehrauftrag/acceptLehrauftrag.php +++ b/application/views/lehre/lehrauftrag/acceptLehrauftrag.php @@ -152,6 +152,19 @@ $this->load->view( return parseFloat(rowValue) == headerValue; } + // ----------------------------------------------------------------------------------------------------------------- + // Custom filters + // ----------------------------------------------------------------------------------------------------------------- + + // Filters erteilte initially + function func_initialFilter(){ + return [ + {field: 'bestellt', type: '!=', value: null}, // bestellt + {field: 'erteilt', type: '!=', value: null}, // AND erteilt + {field: 'akzeptiert', type: '=', value: null} // AND NOT akzeptiert + ] + } + // ----------------------------------------------------------------------------------------------------------------- // Tabulator table format functions // ----------------------------------------------------------------------------------------------------------------- diff --git a/application/views/lehre/lehrauftrag/acceptLehrauftragData.php b/application/views/lehre/lehrauftrag/acceptLehrauftragData.php index 1b8170d9a..17ae6f406 100644 --- a/application/views/lehre/lehrauftrag/acceptLehrauftragData.php +++ b/application/views/lehre/lehrauftrag/acceptLehrauftragData.php @@ -327,6 +327,7 @@ $filterWidgetArray = array( selectableCheck: function(row){ return func_selectableCheck(row); }, + initialFilter: func_initialFilter(), footerElement: func_footerElement(), rowUpdated:function(row){ func_rowUpdated(row);