Commit 53002f1e authored by John Pitcairn's avatar John Pitcairn Committed by Ra Mänd
Browse files

Issue #2561355 by John Pitcairn, Chris Matthews: Clone should display...

Issue #2561355 by John Pitcairn, Chris Matthews: Clone should display appropriate auto generated title text before save
parent c6ef27f5
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -343,6 +343,9 @@ class CommerceProductInlineEntityFormController extends EntityInlineEntityFormCo
  public function createClone($entity) {
    $cloned_entity = parent::createClone($entity);
    $cloned_entity->sku = NULL;
    if ($this->settings['autogenerate_title']) {
      $cloned_entity->title = NULL;
    }

    return $cloned_entity;
  }