aboutsummaryrefslogtreecommitdiffstats
path: root/mayor-orig/mayor-naplo/www/policy
diff options
context:
space:
mode:
authorM.Gergo2020-03-30 14:35:03 +0200
committerM.Gergo2020-03-30 14:35:03 +0200
commitb926ebee10ecb9e6bd128cbacb7be6ee62a8c531 (patch)
tree66ac4e9d27846b2428ef0e7edfb4174b3b26c508 /mayor-orig/mayor-naplo/www/policy
parent9424baefa25b375a492acca5e7488fb79e76bbb7 (diff)
downloadmayor-b926ebee10ecb9e6bd128cbacb7be6ee62a8c531.tar.gz
mayor-b926ebee10ecb9e6bd128cbacb7be6ee62a8c531.zip
Rev: 4643rev4643
Diffstat (limited to 'mayor-orig/mayor-naplo/www/policy')
-rw-r--r--mayor-orig/mayor-naplo/www/policy/private/naplo/haladasi/hazifeladat-pre.php8
-rw-r--r--mayor-orig/mayor-naplo/www/policy/private/naplo/tools/getOraAdat-pre.php4
2 files changed, 9 insertions, 3 deletions
diff --git a/mayor-orig/mayor-naplo/www/policy/private/naplo/haladasi/hazifeladat-pre.php b/mayor-orig/mayor-naplo/www/policy/private/naplo/haladasi/hazifeladat-pre.php
index 23d9f391..931b7dcd 100644
--- a/mayor-orig/mayor-naplo/www/policy/private/naplo/haladasi/hazifeladat-pre.php
+++ b/mayor-orig/mayor-naplo/www/policy/private/naplo/haladasi/hazifeladat-pre.php
@@ -105,9 +105,11 @@
}
if ($diakId>0) {
- $q = "INSERT IGNORE INTO oraHazifeladatDiak (hazifeladatId,diakId,diakLattamDt) VALUES (%u,%u,NOW())";
- $values = array($ADAT['hazifeladatId'], $diakId);
- db_query($q, array('modul'=>'naplo','result'=>'insert','values'=>$values));
+ // $q = "INSERT IGNORE INTO oraHazifeladatDiak (hazifeladatId,diakId,diakLattamDt) VALUES (%u,%u,NOW())";
+ // $values = array($ADAT['hazifeladatId'], $diakId);
+ // db_query($q, array('modul'=>'naplo','result'=>'insert','values'=>$values));
+
+ oraHazifeladatDiakLatta($ADAT['hazifeladatId']);
if ($action=='hazifeladatKesz') {
if ($diakId>0 && $ADAT['hazifeladatId']>0) {
diff --git a/mayor-orig/mayor-naplo/www/policy/private/naplo/tools/getOraAdat-pre.php b/mayor-orig/mayor-naplo/www/policy/private/naplo/tools/getOraAdat-pre.php
index 31dd4699..1596e591 100644
--- a/mayor-orig/mayor-naplo/www/policy/private/naplo/tools/getOraAdat-pre.php
+++ b/mayor-orig/mayor-naplo/www/policy/private/naplo/tools/getOraAdat-pre.php
@@ -30,6 +30,10 @@
$_JSON['oraAdat'] = $ORAADAT = getOraAdatById($oraId);
+ if ($ORAADAT['hazifeladatId']>0) {
+ oraHazifeladatDiakLatta($ORAADAT['hazifeladatId']); // log: diakLattamDt
+ }
+
if ($dolgozatBeirhato === true && $action=='dolgozatBeiras') {
$dolgozatId = ujDolgozat('',$ORAADAT['tankorId']);
dolgozatModositas($dolgozatId,'',$ORAADAT['dt']);