Skip to content

Commit

Permalink
Small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Vlad committed Feb 28, 2023
1 parent d241a73 commit 565301d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/Base/Models/CustomField/EntityField.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ public function getValues()
{
$values = [];
foreach ($this->values as $setted) {
$values[]= $setted->value;
if (property_exists($setted, 'value')) {
$values[]= $setted->value;
}
}
return $values;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Services/Tasks.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class Tasks extends \Ufee\Amo\Base\Services\LimitedList
{
protected static
$_require = [
'add' => ['element_id','element_type','text'],
'add' => ['text'],
'update' => ['id', 'updated_at']
];
protected
Expand Down

0 comments on commit 565301d

Please sign in to comment.