v20220427
authorKilian Saffran <ksaffran@dks.lu>
Wed, 27 Apr 2022 07:37:11 +0000 (09:37 +0200)
committerKilian Saffran <ksaffran@dks.lu>
Wed, 27 Apr 2022 07:37:11 +0000 (09:37 +0200)
app/lib/config.php
app/lib/version.php
app/tmpl/module/periods/periodday.js
app/tmpl/module/periods/staffperiodweeks.js

index 25caaa8..237cdb6 100644 (file)
@@ -24,7 +24,7 @@
       "user" => 'potlu2_user',
       "password" => 'dMY8xGB6cBLzrDGE',
       "logfile" => "log/sql.log",
-      "debug" => 1
+      "debug" => 0
     ),
     "htxuser" => "htx",
     "htxpwd" => "Aib5aevo",
index 253754c..c63b803 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-$cfg["appversion"] = '1.15.4';
+$cfg["appversion"] = '1.15.5';
   if ($cfg["debug"] == 1){
     $cfg["appversion"] = date('YmdHi');//$cfg["version"];
   } 
index 6fa857a..2493551 100644 (file)
@@ -7,10 +7,7 @@ let periodday = {
   choices:{"id_vacancytype":null,"id_recuperationtype":null,"id_workplan":null},
   disablesave: false,
   initform: function(){
-    periodday.choices["id_workplan"] = new SlimSelect({
-      select: "#id_workplan",
-      showSearch: false
-    });
+    
     let tfields = document.getElementsByClassName("timefield");
     for (let i=0;i<tfields.length;i++){
       if (tfields[i].id == "vacancyhours" || tfields[i].id == "recuperationhours" || tfields[i].id == "workhours"){
index c3632d7..160c19b 100644 (file)
@@ -17,6 +17,10 @@ let staffperiodweeks = {
   choices:{"id_vacancytype":null,"id_recuperationtype":null,"id_workplan":null},
   disablesave: false,
   initform: function(){
+    staffperiodweeks.choices["id_workplan"] = new SlimSelect({
+      select: "#id_workplan",
+      showSearch: false
+    });
     //staffperiodweeks.getdefaultdaylimits();
     staffperiodweeks.getwptemplates();
     document.getElementById("keepvacancy").setAttribute("checked",true);
@@ -357,7 +361,7 @@ let staffperiodweeks = {
     }
   },
   getwptemplates: function(){
-    postData("db.php",{"get":"workplanlist","schemata":schemata}).then(data => {
+    postData("db.php",{"cl":"Workplan","fn":"getWorkplans","schema":schemata}).then(data => {
       dataform.fillselectlist(staffperiodweeks.choices["id_workplan"],data.result.data,'id','dspworkplandetail');
       
     }).catch(e => {console.log(e)});