Leska Import / workflow script

This commit is contained in:
Frank Schubert
2025-02-04 23:02:13 +01:00
parent 95abb1be38
commit a8c2bcc198
5 changed files with 359 additions and 64 deletions
+1 -13
View File
@@ -22,24 +22,12 @@ class Workflowitem extends mfBaseModel {
public function getProperty($name) {
if($this->$name == null) {
if($name == "value") {
if(!$this->object_id) {
$this->log->warn(__CLASS__."::getProperty('value'): Object ID not set");
$this->log->debug("[Backtrace] ================");
$this->log->debug("[Backtrace] START Backtrace");
$bt = debug_backtrace();
foreach($bt as $n => $b) {
$this->log->debug($n.") ".$b["file"]."(".$b['line']."): ".$b['class']."->".$b['function']."()" );
}
$this->log->debug("[Backtrace] $sql");
$this->log->debug("[Backtrace] END Backtrace");
return null;
}
$value = mfValuecache::singleton()->get("wfItemvalue-item-".$this->id."-object-".$this->object_id);
if($this->id == 55 && $this->object_id == 509) {
var_dump($value);exit;
}
if($value) {
$this->value = $value;
return $value;