Commit 9efd27f5 authored by Carsten  Rose's avatar Carsten Rose
Browse files

Store.php: Upload failed after changing the $_SESSION[SESSION_NAME] directory structure. Fixed.

parent be0892a2
......@@ -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 paramater are optional.
* All parameter 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 WHHERE ...
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 ...
......
......@@ -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);
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment