Merge pull request #1988 from uniun/patch-3

FIX: Form::set_current_action() never gets called.
This commit is contained in:
Ingo Schommer 2013-05-24 15:53:23 -07:00
commit e6b0b327e5

View File

@ -259,10 +259,6 @@ class Form extends RequestHandler {
} else {
$vars = $request->requestVars();
}
if(isset($funcName)) {
Form::set_current_action($funcName);
}
// Populate the form
$this->loadDataFrom($vars, true);
@ -299,6 +295,7 @@ class Form extends RequestHandler {
}
if(isset($funcName)) {
Form::set_current_action($funcName);
$this->setButtonClicked($funcName);
}