Skip to content
Permalink
Browse files

Restore getNewCaption method on TV duplicate class

  • Loading branch information...
GulomovCreative authored and JoshuaLuckers committed Mar 10, 2019
1 parent c340a1a commit 7238affac4826c265cd35358e08c5dbf82e1daa9
Showing with 1 addition and 6 deletions.
  1. +1 −6 core/src/Revolution/Processors/Element/TemplateVar/Duplicate.php
@@ -139,12 +139,7 @@ public function duplicateMediaSources()
*/
public function getNewCaption()
{
$caption = $this->getProperty($this->captionField);
$newCaption = !empty($caption)
? $caption
: $this->modx->lexicon('duplicate_of', ['name' => $this->object->get($this->captionField)]);
return $newCaption;
return $this->getProperty($this->captionField);
}
/**

0 comments on commit 7238aff

Please sign in to comment.
You can’t perform that action at this time.