Commit 82e006b526ee8d532d0cab29eef14a3f0c1ea62a

Authored by Michael Joseph
1 parent 228a2f5c

(#2944) only check name and parent when checking for existence


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@2706 c91229c3-7414-0410-bfa2-8a42b809f60b
lib/foldermanagement/Folder.inc
@@ -425,13 +425,13 @@ class Folder { @@ -425,13 +425,13 @@ class Folder {
425 } 425 }
426 426
427 /** 427 /**
428 - * Checks if a folder with the same name, description and parent exists in the database already 428 + * Checks if a folder with the same name and parent exists in the database already
429 */ 429 */
430 function exists() { 430 function exists() {
431 global $default; 431 global $default;
432 $sql = $default->db; 432 $sql = $default->db;
433 $sql->query("SELECT id FROM $default->folders_table WHERE name='" . $this->sName . "' " . 433 $sql->query("SELECT id FROM $default->folders_table WHERE name='" . $this->sName . "' " .
434 - "AND description = '" . $this->sDescription . "' AND parent_id=$this->iParentID"); 434 + "AND parent_id=$this->iParentID");
435 if ($sql->next_record()) { 435 if ($sql->next_record()) {
436 return true; 436 return true;
437 } else { 437 } else {