mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-30 17:25:26 +02:00
Added info messages to import output
This commit is contained in:
parent
b2df1b3529
commit
07ec59290b
@ -1634,9 +1634,10 @@ class Prd
|
||||
];
|
||||
|
||||
$this->result = [
|
||||
'status' => true,
|
||||
'items' => [],
|
||||
'errors' => [],
|
||||
'status' => true,
|
||||
'items' => [],
|
||||
'errors' => [],
|
||||
'info' => []
|
||||
];
|
||||
|
||||
$this->currentItem = [
|
||||
@ -1680,6 +1681,17 @@ class Prd
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* Fills result with info message.
|
||||
*
|
||||
* @param string $msg Info message.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function addResultInfo(string $msg)
|
||||
{
|
||||
$this->result['info'][] = $msg;
|
||||
}
|
||||
|
||||
/**
|
||||
* Fills result with error message.
|
||||
@ -2728,6 +2740,15 @@ class Prd
|
||||
$this->setResultStatus(false);
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
// DOING
|
||||
$this->addResultInfo(
|
||||
sprintf(
|
||||
'Skipped item creation at least one reference not found: table => %s, item => %s',
|
||||
$table,
|
||||
$id
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user