|
|
@@ -240,6 +240,7 @@ class ProcesTestyHelper {
|
|
|
|
|
|
/**
|
|
|
* Updates field TEST_PYTANIE in remote table.
|
|
|
+ * moved to trigger after insert/delete `CRM_TESTY_PYTANIA`
|
|
|
*/
|
|
|
public static function update_proces_stat($remote_id) {
|
|
|
$db = DB::getDB();
|
|
|
@@ -275,12 +276,9 @@ class ProcesTestyHelper {
|
|
|
and `ID_PROCES`='{$remote_id}'
|
|
|
limit 1
|
|
|
";
|
|
|
- //echo'<pre style="max-height:200px;overflow:auto;border:1px solid red;">sql delete = ';print_r($sql);echo'</pre>';
|
|
|
$db->query($sql);
|
|
|
$affected = $db->affected_rows();
|
|
|
|
|
|
- self::update_proces_stat($remote_id);
|
|
|
-
|
|
|
return $affected;
|
|
|
}
|
|
|
|