Skip to content

Commit

Permalink
fixed json
Browse files Browse the repository at this point in the history
  • Loading branch information
Dennis Patzer committed Mar 14, 2018
1 parent 065cba9 commit 1334d0f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Item/DefaultItem.php
Expand Up @@ -373,9 +373,7 @@ public function parse(string $cssClass = '', int $count = 0): string
*/
public function jsonSerialize()
{
$data = $this->getFormatted();

return array_merge($data, System::getContainer()->get('huh.utils.class')->jsonSerialize(static::class, $this));
return array_merge($data, System::getContainer()->get('huh.utils.class')->jsonSerialize(static::class, $this, $this->getFormatted()));
}

public function generateIdOrAlias(ItemInterface $item, ListConfigModel $listConfig): string
Expand Down

0 comments on commit 1334d0f

Please sign in to comment.