From 3c77a75a27b13816e8b3e65634f27abe629ac9ba Mon Sep 17 00:00:00 2001 From: Rob Clayburn Date: Wed, 5 Jul 2017 17:18:28 +0100 Subject: [PATCH] Allow form plugin to reference the origin rowid in the URL --- plugins/content/fabrik/fabrik.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/content/fabrik/fabrik.php b/plugins/content/fabrik/fabrik.php index 03a992a72e4..581249ea4dd 100644 --- a/plugins/content/fabrik/fabrik.php +++ b/plugins/content/fabrik/fabrik.php @@ -392,6 +392,9 @@ protected function replace($match) // Set row id for things like user element $origRowId = $input->get('rowid'); $input->set('rowid', $rowId); + + // Allow plugin to reference the origin rowid in the URL + $input->set('origRowId', $origRowId); // Set detail view for things like youtube element $origView = $input->get('view'); @@ -420,6 +423,7 @@ protected function replace($match) $input->set('rowid', $origRowId); $input->set('view', $origView); + $input->set('origRowId', ''); $this->resetRequest(); }