Skip to content

Commit 6a01cbe

Browse files
committed
cypress error cleared
1 parent f3ce61b commit 6a01cbe

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

components/com_content/src/Model/FormModel.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -177,12 +177,13 @@ public function getItem($itemId = null)
177177
}
178178
}
179179

180-
$workflow_assoc = $this->workflow->getAssociation($value->id);
180+
if (!empty($value->id)) {
181+
$workflow_assoc = $this->workflow->getAssociation($value->id);
181182

182-
if (!empty($workflow_assoc->workflow_id)) {
183-
$value->workflow_id = $workflow_assoc->workflow_id;
183+
if (!empty($workflow_assoc->workflow_id)) {
184+
$value->workflow_id = $workflow_assoc->workflow_id;
185+
}
184186
}
185-
186187
return $value;
187188
}
188189

0 commit comments

Comments
 (0)