Skip to content

Commit

Permalink
support_29828
Browse files Browse the repository at this point in the history
  • Loading branch information
Rom1-B authored and trasher committed Oct 5, 2023
1 parent b5e0b8e commit 4c6283e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/CommonITILTask.php
Original file line number Diff line number Diff line change
Expand Up @@ -1283,7 +1283,11 @@ public static function genericPopulatePlanning($itemtype, $options = [])

/// Specific for tickets
$interv[$key]["device"] = [];
if (isset($parentitem->hardwaredatas) && !empty($parentitem->hardwaredatas)) {
if (
$parentitem instanceof Ticket
&& isset($parentitem->hardwaredatas)
&& !empty($parentitem->hardwaredatas)
) {
foreach ($parentitem->hardwaredatas as $hardwaredata) {
$interv[$key]["device"][$hardwaredata->fields['id']] = ($hardwaredata
? $hardwaredata->getName() : '');
Expand Down

0 comments on commit 4c6283e

Please sign in to comment.