Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
typo3
qfq
Commits
9efd27f5
Commit
9efd27f5
authored
Jun 02, 2016
by
Carsten Rose
Browse files
Store.php: Upload failed after changing the $_SESSION[SESSION_NAME] directory structure. Fixed.
parent
be0892a2
Changes
2
Hide whitespace changes
Inline
Side-by-side
extension/Documentation/UsersManual/Index.rst
View file @
9efd27f5
...
...
@@ -909,11 +909,12 @@ current record either to finalize the upload or to delete a previous uploaded fi
* FormElement. *parameter*:
* *pathFileName*: Destination where to copy the file. A good practice is to specify a relative pathFileName - such an
installation (filesystem and database) are moveable. If the final pathFileName should contain the original filename,
* *fileDestination*: Destination where to copy the file. A good practice is to specify a relative fileDestination - such an
installation (filesystem and database) are moveable.
* If the final fileDestination should contain the original filename,
the variable *{{_filename}}* can be used. Example::
pathFileName
={{SELECT 'fileadmin/user/pictures/', p.name, '-{{_filename}}' FROM Person AS p WHERE p.id={{r}} }}
fileDestination
={{SELECT 'fileadmin/user/pictures/', p.name, '-{{_filename}}' FROM Person AS p WHERE p.id={{r}} }}
.. _class-action:
...
...
@@ -1520,7 +1521,7 @@ The colum name is composed of the string *page* and a trailing character to spec
+---------------+-----------------------------------------------+-------------------------------------+----------------------------------------------+
* All param
a
ter are optional.
* All param
e
ter are optional.
* Optional set of predefined icons.
* Optional set of dialog boxes.
...
...
@@ -1935,7 +1936,7 @@ Assume you have multiple columns with reserved names in the same query and want
::
10.sql = SELECT CONCAT("/static/directory/", g.picture) AS _img, CONCAT("/static/preview/", g.thumbnail) AS _img FROM gallery AS g WH
H
ERE ...
10.sql = SELECT CONCAT("/static/directory/", g.picture) AS _img, CONCAT("/static/preview/", g.thumbnail) AS _img FROM gallery AS g WHERE ...
20.sql = SELECT "{{10.img}}", d.text FROM description AS d ...
...
...
extension/qfq/qfq/store/Store.php
View file @
9efd27f5
...
...
@@ -378,14 +378,14 @@ class Store {
$value
=
Session
::
get
(
STORE_EXTRA
);
if
(
!
isset
(
$_SESSION
[
STORE_EXTRA
])
||
$_SESSION
[
STORE_EXTRA
]
===
null
)
{
if
(
!
isset
(
$_SESSION
[
SESSION_NAME
][
STORE_EXTRA
])
||
$_SESSION
[
SESSION_NAME
][
STORE_EXTRA
]
===
null
)
{
$value
=
false
;
}
if
(
$value
===
false
)
{
self
::
setVarArray
(
array
(),
STORE_EXTRA
,
true
);
}
else
{
self
::
setVarArray
(
$_SESSION
[
STORE_EXTRA
],
STORE_EXTRA
,
true
);
self
::
setVarArray
(
$_SESSION
[
SESSION_NAME
][
STORE_EXTRA
],
STORE_EXTRA
,
true
);
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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