Browse Source

[FIX] include file fields values

experimental
Georgi Hristov 2 years ago
parent
commit
f1b4bdf5c1
2 changed files with 3 additions and 3 deletions
  1. +1
    -1
      modules/Utils/LeightboxPrompt/LeightboxPrompt_0.php
  2. +2
    -2
      modules/Utils/RecordBrowser/RecordBrowser_0.php

+ 1
- 1
modules/Utils/LeightboxPrompt/LeightboxPrompt_0.php View File

@@ -215,7 +215,7 @@ class Utils_LeightboxPrompt extends Module {
foreach ($this->options as $option_key=>$option) {
if ($option['form']!==null && $option['form']->validate()) {
$ret['option'] = $option_key;
$vals = $option['form']->exportValues();
$vals = array_merge($option['form']->exportValues(), Utils_FileUpload_Dropzone::export_values($option['form']));
if (is_array($this->params_list)) foreach ($this->params_list as $p) {
$ret['params'][$p] = $vals[$this->group.'_'.$p];
unset($vals[$this->group.'_'.$p]);


+ 2
- 2
modules/Utils/RecordBrowser/RecordBrowser_0.php View File

@@ -859,10 +859,10 @@ class Utils_RecordBrowser extends Module {
if ($form->isSubmitted()) {
$this->set_module_variable('force_add_in_table_after_submit', true);
if ($form->validate()) {
$values = $form->exportValues();
$values = array_merge($form->exportValues(), Utils_FileUpload_Dropzone::export_values($form));
foreach ($this->custom_defaults as $k=>$v)
if (!isset($values[$k])) $values[$k] = $v;
$id = Utils_RecordBrowserCommon::new_record($this->tab, $values);
Utils_RecordBrowserCommon::new_record($this->tab, $values);
location(array());
} else {
$this->show_add_in_table = true;


Loading…
Cancel
Save