aboutsummaryrefslogtreecommitdiffstats
path: root/mayor-orig/mayor-naplo/www/policy
diff options
context:
space:
mode:
authorM.Gergo2020-03-24 18:56:00 +0100
committerM.Gergo2020-03-24 18:56:00 +0100
commit2f93e272054ed126be63db31d33e90f51f09d30e (patch)
tree0344db4e179a6aa9ccf2503d6d6ca25fa39e53d0 /mayor-orig/mayor-naplo/www/policy
parent351ace3031cf063cef346027ae209d218225242a (diff)
downloadmayor-rev4633.tar.gz
mayor-rev4633.zip
Rev: 4633rev4633
Diffstat (limited to 'mayor-orig/mayor-naplo/www/policy')
-rw-r--r--mayor-orig/mayor-naplo/www/policy/private/naplo/haladasi/hazifeladat-pre.php10
1 files changed, 5 insertions, 5 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 d0f4cb6b..a26b39fa 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
@@ -55,14 +55,14 @@
$ADAT['oraAdat'] = getOraadatById($oraId);
if (__TANAR===true && $action=='hazifeladatBeiras') {
-
+ $hazifeladatFeltoltesEngedely = readVariable($_POST['hazifeladatFeltoltesEngedely'],'id',0);
if ($hazifeladatId>0) { // update
- $q = "UPDATE oraHazifeladat set hazifeladatLeiras='%s' WHERE hazifeladatId=%u";
- $values = array($ADAT['hazifeladatLeiras'],$ADAT['hazifeladatId']);
+ $q = "UPDATE oraHazifeladat set hazifeladatLeiras='%s',hazifeladatFeltoltesEngedely=%u WHERE hazifeladatId=%u";
+ $values = array($ADAT['hazifeladatLeiras'],$hazifeladatFeltoltesEngedely,$ADAT['hazifeladatId']);
$r = db_query($q, array('modul'=>'naplo','result'=>'update','values'=>$values));
} elseif ($oraId>0) { // insert
- $q = "INSERT IGNORE INTO oraHazifeladat (hazifeladatLeiras,oraId) VALUES ('%s',%u)";
- $values = array($ADAT['hazifeladatLeiras'],$ADAT['oraId']);
+ $q = "INSERT IGNORE INTO oraHazifeladat (hazifeladatLeiras,oraId,hazifeladatFeltoltesEngedely) VALUES ('%s',%u,%u)";
+ $values = array($ADAT['hazifeladatLeiras'],$ADAT['oraId'],$hazifeladatFeltoltesEngedely);
$hazifeladatId = db_query($q, array('modul'=>'naplo','result'=>'insert','values'=>$values));
}