Skip to content

Commit

Permalink
#35 Fixed bug where drafts were showing old values
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamminf committed Jul 8, 2016
1 parent 0fc37b2 commit 1427142
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions neo/fieldtypes/NeoFieldType.php
Original file line number Diff line number Diff line change
Expand Up @@ -739,10 +739,12 @@ private function _getBlockHtml(Neo_BlockTypeModel $blockType, Neo_BlockModel $bl
$errors = $block ? $block->getAllErrors() : [];
$hasErrors = !empty($errors);
$fullNamespace = craft()->templates->namespaceInputName($namespace, craft()->templates->getNamespace());
$owner = $block ? $block->getOwner() : null;

$cacheKey = implode('|', ['neoblock',
$blockType->id,
$block ? $block->id : '',
$owner ? $owner->dateUpdated->getTimestamp() : '',
$fullNamespace,
$static ? '1' : '0',
craft()->request->isSecureConnection() ? '1': '0',
Expand Down

0 comments on commit 1427142

Please sign in to comment.