Support from Acquia helps fund testing for Drupal Acquia logo

Comments

msajko created an issue. See original summary.

msajko’s picture

joachim’s picture

Status: Needs review » Needs work
+++ b/src/ActionLink/ActionLinkTypeBase.php
@@ -91,6 +91,10 @@ abstract class ActionLinkTypeBase extends PluginBase implements ActionLinkTypePl
+    if($this->getPluginId() == 'ajax_link' && $destination = \Drupal::request()->query->get('destination')) {

This should go in AJAXactionLink rather than checking the plugin type!

msajko’s picture

msajko’s picture

msajko’s picture

Status: Needs work » Reviewed & tested by the community
msajko’s picture

Status: Reviewed & tested by the community » Needs review
FileSize
745 bytes
martin107’s picture

Status: Needs review » Needs work
Issue tags: +Needs reroll

Patch no longer applies.

joachim’s picture

+++ b/src/Plugin/ActionLink/AJAXactionLink.php
@@ -23,6 +23,16 @@ class AJAXactionLink extends Reload {
+    if($destination = \Drupal::request()->query->get('destination')) {
+      return $destination;
+    }

I'd also like a comment explaining what this is doing and why.

r.nabiullin’s picture

The last submitted patch, 10: interdiff-ajaxDestination-2820395-7-10.diff, failed testing. View results

martin107’s picture

socketwench’s picture

+++ b/src/Plugin/ActionLink/AJAXactionLink.php
@@ -19,6 +22,58 @@ use Drupal\flag\FlagInterface;
+    if ($destination = $this->request->query->get('destination')) {

This is good, but like Joachim, I really would like a comment here explaining why we need this.

socketwench’s picture

Status: Needs review » Needs work
msajko’s picture

FileSize
2.46 KB

If there is more then one flag on page we would like to have control on DOM element which is relate on e.q. click event and no matter how many times you call event.

msajko’s picture

Status: Needs work » Needs review

  • socketwench committed 2907910 on 8.x-4.x authored by msajko
    Issue #2820395 by msajko, nabiyllin, martin107, socketwench, joachim:...
socketwench’s picture

Status: Needs review » Fixed

I did a bit more wordsmithing on the comment, but that's all.

Thanks everyone!

Status: Fixed » Closed (fixed)

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