We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f3ce61b commit 6a01cbeCopy full SHA for 6a01cbe
components/com_content/src/Model/FormModel.php
@@ -177,12 +177,13 @@ public function getItem($itemId = null)
177
}
178
179
180
- $workflow_assoc = $this->workflow->getAssociation($value->id);
+ if (!empty($value->id)) {
181
+ $workflow_assoc = $this->workflow->getAssociation($value->id);
182
- if (!empty($workflow_assoc->workflow_id)) {
183
- $value->workflow_id = $workflow_assoc->workflow_id;
+ if (!empty($workflow_assoc->workflow_id)) {
184
+ $value->workflow_id = $workflow_assoc->workflow_id;
185
+ }
186
-
187
return $value;
188
189
0 commit comments