I think the $variant_plugin->applyVariant() should be returned, according to the interface

CommentFileSizeAuthor
#4 3176185-4.patch1.2 KBpcambra
#2 3176185-2.patch979 bytespcambra

Comments

pcambra created an issue. See original summary.

pcambra’s picture

Status: Active » Needs review
StatusFileSize
new979 bytes
jrockowitz’s picture

Status: Needs review » Needs work
+++ b/src/Entity/Webform.php
@@ -2821,9 +2821,7 @@ class Webform extends ConfigEntityBundleBase implements WebformInterface {
+        $is_applied = $this->applyVariant($varient_element_key, $instance_id, $force);

$is_applied is being set everytime ::applyVariant is called even when ::applyVariant return FALSE

pcambra’s picture

Status: Needs work » Needs review
StatusFileSize
new1.2 KB

I've reverted that change :), taking the chance to fix the typo I've just noticed after your comment on this patch.

jrockowitz’s picture

It is always good to fix typos.

jrockowitz’s picture

Status: Needs review » Fixed

Thanks for the patch.

  • pcambra authored 1f6edfa on 8.x-5.x
    Issue #3176185 by pcambra: ApplyVariant from  Drupal\webform\Entity...

  • pcambra authored 1f6edfa on 6.x
    Issue #3176185 by pcambra: ApplyVariant from  Drupal\webform\Entity...
pcambra’s picture

Thank you!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.