From e68337c6857536d5764bb2d0d0af072bd8d007a8 Mon Sep 17 00:00:00 2001 From: hainberg Date: Thu, 24 Oct 2019 14:04:57 +0200 Subject: [PATCH] Added INITIAL FILTER to LA erteilen MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Initial filter is: no dummies, neu or geƤndert. Now these rows are presented to the user when loading the page. --- .../views/lehre/lehrauftrag/approveLehrauftrag.php | 10 ++++++++++ .../views/lehre/lehrauftrag/approveLehrauftragData.php | 1 + 2 files changed, 11 insertions(+) diff --git a/application/views/lehre/lehrauftrag/approveLehrauftrag.php b/application/views/lehre/lehrauftrag/approveLehrauftrag.php index 30dd1d497..ed2bf96a6 100644 --- a/application/views/lehre/lehrauftrag/approveLehrauftrag.php +++ b/application/views/lehre/lehrauftrag/approveLehrauftrag.php @@ -179,6 +179,16 @@ $this->load->view( // Custom filters // ----------------------------------------------------------------------------------------------------------------- + // Filters bestellte initially + function func_initialFilter(){ + return [ + {field: 'personalnummer', type: '>=', value: 0}, // NOT dummy lector + {field: 'bestellt', type: '!=', value: null}, // AND bestellt + {field: 'erteilt', type: '=', value: null}, // AND NOT erteilt + {field: 'akzeptiert', type: '=', value: null} // AND NOT akzeptiert + ] + } + // Filters geaenderte function filter_showChanged(data){ diff --git a/application/views/lehre/lehrauftrag/approveLehrauftragData.php b/application/views/lehre/lehrauftrag/approveLehrauftragData.php index 301f1de96..09899fd8b 100644 --- a/application/views/lehre/lehrauftrag/approveLehrauftragData.php +++ b/application/views/lehre/lehrauftrag/approveLehrauftragData.php @@ -344,6 +344,7 @@ $filterWidgetArray = array( selectableCheck: function(row){ return func_selectableCheck(row); }, + initialFilter: func_initialFilter(), footerElement: func_footerElement(), rowUpdated:function(row){ func_rowUpdated(row);