Commit 82e006b526ee8d532d0cab29eef14a3f0c1ea62a
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
Showing
1 changed file
with
2 additions
and
2 deletions
lib/foldermanagement/Folder.inc
| ... | ... | @@ -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 | 430 | function exists() { |
| 431 | 431 | global $default; |
| 432 | 432 | $sql = $default->db; |
| 433 | 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 | 435 | if ($sql->next_record()) { |
| 436 | 436 | return true; |
| 437 | 437 | } else { | ... | ... |