mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-30 17:25:26 +02:00
Fixed an error related with the creation of a report after an invalid creation
Ticket #2397.
This commit is contained in:
parent
dd21d82046
commit
b3e977a40a
@ -769,16 +769,14 @@ switch ($action) {
|
|||||||
else {
|
else {
|
||||||
$resultOperationDB = false;
|
$resultOperationDB = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$action = 'edit';
|
||||||
}
|
}
|
||||||
else if ($action == 'save') {
|
else if ($action == 'save') {
|
||||||
if ($reportName != "" && $idGroupReport != "") {
|
if ($reportName != "" && $idGroupReport != "") {
|
||||||
|
|
||||||
// This flag allow to differentiate between normal console and metaconsole reports
|
// This flag allow to differentiate between normal console and metaconsole reports
|
||||||
if (defined('METACONSOLE') and
|
$metaconsole_report = (int) is_metaconsole();
|
||||||
$config['metaconsole'] == 1)
|
|
||||||
$metaconsole_report = 1;
|
|
||||||
else
|
|
||||||
$metaconsole_report = 0;
|
|
||||||
|
|
||||||
// Juanma (07/05/2014) New feature: Custom front page for reports
|
// Juanma (07/05/2014) New feature: Custom front page for reports
|
||||||
if ($config['custom_report_front']) {
|
if ($config['custom_report_front']) {
|
||||||
@ -830,8 +828,9 @@ switch ($action) {
|
|||||||
$idReport = $idOrResult;
|
$idReport = $idOrResult;
|
||||||
$report_id_user = $config['id_user'];
|
$report_id_user = $config['id_user'];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$action = $resultOperationDB ? 'edit' : 'new';
|
||||||
}
|
}
|
||||||
$action = 'edit';
|
|
||||||
break;
|
break;
|
||||||
case 'item_editor':
|
case 'item_editor':
|
||||||
$resultOperationDB = null;
|
$resultOperationDB = null;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user