Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
typo3
qfq
Commits
d5e0f210
Commit
d5e0f210
authored
Oct 08, 2018
by
Elias Villiger
Browse files
Some minor improvements to the excel import - refs #4922
parent
8203e8f7
Pipeline
#960
passed with stage
in 1 minute and 40 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
extension/Documentation/Manual.rst
View file @
d5e0f210
...
@@ -3523,7 +3523,7 @@ See also `downloadButton`_ to offer a download of an uploaded file.
...
@@ -3523,7 +3523,7 @@ See also `downloadButton`_ to offer a download of an uploaded file.
* *importToTable*:
<mariadb.tablename>
- **Required**. Providing this parameter activates the import. If the table
* *importToTable*:
<mariadb.tablename>
- **Required**. Providing this parameter activates the import. If the table
doesn't exist, it will be created.
doesn't exist, it will be created.
* *importToColumn*:
<col1>
,
<col2>
,... - If none provided, the Excel column names A, B, ... are used. Note: These
* *importToColumn
s
*:
<col1>
,
<col2>
,... - If none provided, the Excel column names A, B, ... are used. Note: These
have to match the table's column names if the table already exists.
have to match the table's column names if the table already exists.
* *importRegion*: [tab],[startColumn],[startRow],[endColumn],[endRow]|... - All parts are optional (default:
* *importRegion*: [tab],[startColumn],[startRow],[endColumn],[endRow]|... - All parts are optional (default:
entire 1st sheet). Tab can either be given as an index (1-based) or a name. start/endColumn can be given either
entire 1st sheet). Tab can either be given as an index (1-based) or a name. start/endColumn can be given either
...
...
extension/qfq/qfq/Save.php
View file @
d5e0f210
...
@@ -378,6 +378,8 @@ class Save {
...
@@ -378,6 +378,8 @@ class Save {
$newValues
[
COLUMN_MIME_TYPE
]
=
$vars
[
VAR_FILE_MIME_TYPE
];
$newValues
[
COLUMN_MIME_TYPE
]
=
$vars
[
VAR_FILE_MIME_TYPE
];
}
}
}
}
}
elseif
(
isset
(
$formElement
[
FE_IMPORT_TO_TABLE
])
&&
!
isset
(
$formElement
[
FE_SLAVE_ID
]))
{
// Excel import on nonexisting column -> no upload
}
else
{
}
else
{
// 'Advanced Upload'
// 'Advanced Upload'
$this
->
doUploadSlave
(
$formElement
,
$modeUpload
);
$this
->
doUploadSlave
(
$formElement
,
$modeUpload
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment