Browse Source

Merge pull request #11 from georgehristov/file_field_values_export

[FIX] include file fields values
experimental
Janusz Tylek 2 years ago
committed by GitHub
parent
commit
cc3844d676
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      modules/Utils/RecordBrowser/RecordBrowser_0.php

+ 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