Skip to content

Commit

Permalink
Allow form plugin to reference the origin rowid in the URL
Browse files Browse the repository at this point in the history
  • Loading branch information
pollen8 authored Jul 5, 2017
1 parent 5660ad1 commit 3c77a75
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions plugins/content/fabrik/fabrik.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down Expand Up @@ -420,6 +423,7 @@ protected function replace($match)

$input->set('rowid', $origRowId);
$input->set('view', $origView);
$input->set('origRowId', '');
$this->resetRequest();
}

Expand Down

0 comments on commit 3c77a75

Please sign in to comment.