Skip to content

Commit

Permalink
fixed: php form plugin couldnt get selected rows/record data - now ac…
Browse files Browse the repository at this point in the history
…cessible in the variable $data
  • Loading branch information
pollen8 committed Feb 18, 2014
1 parent 3bded2a commit c276220
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions plugins/fabrik_form/php/php.php
Expand Up @@ -224,7 +224,7 @@ public function onDeleteRowsForm(&$groups)

if ($params->get('only_process_curl') == 'onDeleteRowsForm')
{
if ($this->_runPHP() === false)
if ($this->_runPHP(null, $groups) === false)
{
return JError::raiseWarning(E_WARNING, 'php form plugin failed');
}
Expand Down Expand Up @@ -317,11 +317,12 @@ public function onError()
* Run plugins php code/script
*
* @param object &$groupModel Group model
* @param array $data List rows when deleteing record(s)
*
* @return bool false if error running php code
*/

private function _runPHP(&$groupModel = null)
private function _runPHP($groupModel = null, $data = null)
{
$data = $this->getProcessData();
/**
Expand Down

0 comments on commit c276220

Please sign in to comment.