pg sql fixes for todo and locale editmode
This commit is contained in:
parent
7bcd7b6d88
commit
f739bc00c4
@ -45,7 +45,7 @@ class saimod_sys_locale extends \SYSTEM\SAI\SaiModule {
|
||||
$con = new \SYSTEM\DB\Connection(\SYSTEM\system::getSystemDBInfo());
|
||||
$res = null;
|
||||
if(\SYSTEM\system::isSystemDbInfoPG()){
|
||||
throw new \SYSTEM\LOG\ERROR("action_edit failed");
|
||||
$res = $con->prepare('newText' ,'UPDATE system.locale_string SET "'.$lang.'"=$1 WHERE id=$2;', array($newtext, $id));
|
||||
} else {
|
||||
$res = $con->prepare('newText' ,'UPDATE system_locale_string SET '.$lang.'=? WHERE id=?;', array($newtext, $id));
|
||||
}
|
||||
|
||||
@ -5,7 +5,7 @@ class saimod_sys_todo extends \SYSTEM\SAI\SaiModule {
|
||||
public static function sai_mod__SYSTEM_SAI_saimod_sys_todo(){
|
||||
$con = new \SYSTEM\DB\Connection(\SYSTEM\system::getSystemDBInfo());
|
||||
if(\SYSTEM\system::isSystemDbInfoPG()){
|
||||
$res = $con->query('SELECT * FROM system.todo LEFT JOIN system_user ON system_todo.author = system_user.ID ORDER BY state, time DESC;');
|
||||
$res = $con->query('SELECT * FROM system.todo LEFT JOIN system.user ON system.todo.author = system.user.ID ORDER BY state, time DESC;');
|
||||
} else {
|
||||
$res = $con->query('SELECT * FROM system_todo LEFT JOIN system_user ON system_todo.author = system_user.ID ORDER BY state, time DESC;');
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user