Merge branch 'seeddms-4.1.2' into develop

Conflicts:
	Makefile
	inc/inc.Version.php
	install/install.php
This commit is contained in:
Uwe Steinmann 2013-04-08 08:17:46 +02:00
commit 26798d7676
8 changed files with 49 additions and 10 deletions

View File

@ -1,3 +1,9 @@
--------------------------------------------------------------------------------
Changes in version 4.1.2
--------------------------------------------------------------------------------
- set propper internal folder path of sub folders after moving a folder
to a new place
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
Changes in version 4.1.1 Changes in version 4.1.1
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------

View File

@ -1,8 +1,4 @@
<<<<<<< HEAD
VERSION=4.2.0 VERSION=4.2.0
=======
VERSION=4.1.1
>>>>>>> seeddms-4.1.1
SRC=CHANGELOG inc conf utils index.php languages views op out README.md README.Notification README.Ubuntu drop-tables-innodb.sql styles js TODO LICENSE Makefile webdav install SRC=CHANGELOG inc conf utils index.php languages views op out README.md README.Notification README.Ubuntu drop-tables-innodb.sql styles js TODO LICENSE Makefile webdav install
#restapi webapp #restapi webapp

View File

@ -225,7 +225,7 @@ class SeedDMS_Core_DMS {
$this->convertFileTypes = array(); $this->convertFileTypes = array();
$this->version = '@package_version@'; $this->version = '@package_version@';
if($this->version[0] == '@') if($this->version[0] == '@')
$this->version = '4.1.1'; $this->version = '4.1.2';
} /* }}} */ } /* }}} */
function getDB() { /* {{{ */ function getDB() { /* {{{ */

View File

@ -178,6 +178,7 @@ class SeedDMS_Core_Folder extends SeedDMS_Core_Object {
$res = $db->getResult($queryStr); $res = $db->getResult($queryStr);
if (!$res) if (!$res)
return false; return false;
$this->_parentID = $newParent->getID(); $this->_parentID = $newParent->getID();
$this->_parent = $newParent; $this->_parent = $newParent;
@ -192,6 +193,7 @@ class SeedDMS_Core_Folder extends SeedDMS_Core_Object {
$pathPrefix .= ":"; $pathPrefix .= ":";
} }
/* Update path in folderList for all documents */
$queryStr = "SELECT `tblDocuments`.`id`, `tblDocuments`.`folderList` FROM `tblDocuments` WHERE `folderList` LIKE '%:".$this->_id.":%'"; $queryStr = "SELECT `tblDocuments`.`id`, `tblDocuments`.`folderList` FROM `tblDocuments` WHERE `folderList` LIKE '%:".$this->_id.":%'";
$resArr = $db->getResultArray($queryStr); $resArr = $db->getResultArray($queryStr);
if (is_bool($resArr) && $resArr == false) if (is_bool($resArr) && $resArr == false)
@ -203,6 +205,18 @@ class SeedDMS_Core_Folder extends SeedDMS_Core_Object {
$res = $db->getResult($queryStr); $res = $db->getResult($queryStr);
} }
/* Update path in folderList for all documents */
$queryStr = "SELECT `tblFolders`.`id`, `tblFolders`.`folderList` FROM `tblFolders` WHERE `folderList` LIKE '%:".$this->_id.":%'";
$resArr = $db->getResultArray($queryStr);
if (is_bool($resArr) && $resArr == false)
return false;
foreach ($resArr as $row) {
$newPath = preg_replace("/^.*:".$this->_id.":(.*$)/", $pathPrefix."\\1", $row["folderList"]);
$queryStr="UPDATE `tblFolders` SET `folderList` = '".$newPath."' WHERE `tblFolders`.`id` = '".$row["id"]."'";
$res = $db->getResult($queryStr);
}
return true; return true;
} /* }}} */ } /* }}} */

View File

@ -15,16 +15,16 @@
<date>2013-04-05</date> <date>2013-04-05</date>
<time>16:08:38</time> <time>16:08:38</time>
<version> <version>
<release>4.1.1</release> <release>4.1.2</release>
<api>4.1.1</api> <api>4.1.0</api>
</version> </version>
<stability> <stability>
<release>beta</release> <release>stable</release>
<api>stable</api> <api>stable</api>
</stability> </stability>
<license uri="http://opensource.org/licenses/gpl-license">GPL License</license> <license uri="http://opensource.org/licenses/gpl-license">GPL License</license>
<notes> <notes>
- stay in sync with seeddms application - set propper folderList of sub folders after moving a folder
</notes> </notes>
<contents> <contents>
<dir baseinstalldir="SeedDMS" name="/"> <dir baseinstalldir="SeedDMS" name="/">
@ -449,5 +449,21 @@ New release
- minor bugfixes - minor bugfixes
</notes> </notes>
</release> </release>
<release>
<date>2013-04-05</date>
<time>16:08:38</time>
<version>
<release>4.1.1</release>
<api>4.1.1</api>
</version>
<stability>
<release>beta</release>
<api>stable</api>
</stability>
<license uri="http://opensource.org/licenses/gpl-license">GPL License</license>
<notes>
- stay in sync with seeddms application
</notes>
</release>
</changelog> </changelog>
</package> </package>

View File

@ -20,7 +20,11 @@
class SeedDMS_Version { class SeedDMS_Version {
<<<<<<< HEAD
var $_number = "4.2.0"; var $_number = "4.2.0";
=======
var $_number = "4.1.2";
>>>>>>> seeddms-4.1.2
var $_string = "SeedDMS"; var $_string = "SeedDMS";
function SeedDMS_Version() { function SeedDMS_Version() {

View File

@ -116,7 +116,11 @@ function fileExistsInIncludePath($file) { /* {{{ */
* Load default settings + set * Load default settings + set
*/ */
define("SEEDDMS_INSTALL", "on"); define("SEEDDMS_INSTALL", "on");
<<<<<<< HEAD
define("SEEDDMS_VERSION", "4.2.0"); define("SEEDDMS_VERSION", "4.2.0");
=======
define("SEEDDMS_VERSION", "4.1.2");
>>>>>>> seeddms-4.1.2
require_once('../inc/inc.ClassSettings.php'); require_once('../inc/inc.ClassSettings.php');

View File

@ -46,7 +46,6 @@ class SeedDMS_View_ObjectCheck extends SeedDMS_Bootstrap_Style {
for ($i = 1; $i < count($tmppath); $i++) { for ($i = 1; $i < count($tmppath); $i++) {
print "/".htmlspecialchars($tmppath[$i]->getName()); print "/".htmlspecialchars($tmppath[$i]->getName());
} }
print $folder->getName();
print "</a></td>"; print "</a></td>";
$owner = $folder->getOwner(); $owner = $folder->getOwner();