validate in pmdynaform
This commit is contained in:
@@ -2958,7 +2958,7 @@ class Bootstrap
|
||||
*/
|
||||
public static function setLanguage()
|
||||
{
|
||||
$acceptLanguage = $_SERVER['HTTP_ACCEPT_LANGUAGE'];
|
||||
$acceptLanguage = isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])?$_SERVER['HTTP_ACCEPT_LANGUAGE']:'en';
|
||||
if (!defined('SYS_LANG')) {
|
||||
$Translations = new \Translation;
|
||||
$translationsTable = $Translations->getTranslationEnvironments();
|
||||
|
||||
@@ -452,7 +452,7 @@ class pmDynaform
|
||||
if (isset($this->fields["STEP_MODE"]) && $this->fields["STEP_MODE"] === "VIEW" && isset($json->mode)) {
|
||||
$json->mode = "view";
|
||||
}
|
||||
if ($key === "type" && ($value === "form")) {
|
||||
if ($key === "type" && ($value === "form") && $this->records != null) {
|
||||
foreach ($this->records as $ri) {
|
||||
if ($json->id === $ri["DYN_UID"] && !isset($json->jsonUpdate)) {
|
||||
$jsonUpdate = json_decode($ri["DYN_CONTENT"]);
|
||||
|
||||
Reference in New Issue
Block a user