mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-12-25 22:20:29 +01:00
Bugfix auto increment of document IDs
This commit is contained in:
parent
2a5f01004b
commit
3ef58b681f
@ -33040,7 +33040,8 @@ function MailSendFinal($from,$from_name,$to,$to_name,$betreff,$text,$files="",$p
|
|||||||
if($field === 'mysql55') {
|
if($field === 'mysql55') {
|
||||||
return '1';
|
return '1';
|
||||||
}
|
}
|
||||||
if(strpos($field,'next') !== false)
|
|
||||||
|
if(strpos($field,'next') != false)
|
||||||
{
|
{
|
||||||
$firmendatenid = (int)$this->app->DB->Select('SELECT MAX(id) FROM firmendaten LIMIT 1');
|
$firmendatenid = (int)$this->app->DB->Select('SELECT MAX(id) FROM firmendaten LIMIT 1');
|
||||||
|
|
||||||
@ -33051,9 +33052,11 @@ function MailSendFinal($from,$from_name,$to,$to_name,$betreff,$text,$files="",$p
|
|||||||
$field, $firmendatenid)
|
$field, $firmendatenid)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!$this->app->DB->error()) {
|
if(!$this->app->DB->error()) {
|
||||||
return $firmendaten_value;
|
return $firmendaten_value;
|
||||||
}
|
}
|
||||||
|
|
||||||
$firmendaten_value = $this->app->DB->SelectRow(
|
$firmendaten_value = $this->app->DB->SelectRow(
|
||||||
sprintf('SELECT id, wert FROM firmendaten_werte WHERE `name` = \'%s\' LIMIT 1', $field)
|
sprintf('SELECT id, wert FROM firmendaten_werte WHERE `name` = \'%s\' LIMIT 1', $field)
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user