aboutsummaryrefslogtreecommitdiff
path: root/services/tag2tagservice.php
diff options
context:
space:
mode:
authormensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>2008-12-02 10:13:01 +0000
committermensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>2008-12-02 10:13:01 +0000
commit280d90cfefb52f911ba272ca6085270f1865a8a4 (patch)
tree21f510890690c8c22c04caf6e1db92e0e272fa55 /services/tag2tagservice.php
parent17e2e700ad9d491024d90597ab25bd75d5f2f840 (diff)
downloadsemanticscuttle-280d90cfefb52f911ba272ca6085270f1865a8a4.tar.gz
semanticscuttle-280d90cfefb52f911ba272ca6085270f1865a8a4.tar.bz2
Minor fix: normalize tags when renaming them
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@185 b3834d28-1941-0410-a4f8-b48e95affb8f
Diffstat (limited to 'services/tag2tagservice.php')
-rw-r--r--services/tag2tagservice.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/services/tag2tagservice.php b/services/tag2tagservice.php
index 4cce66d..a2d7ac3 100644
--- a/services/tag2tagservice.php
+++ b/services/tag2tagservice.php
@@ -270,6 +270,9 @@ class Tag2TagService {
}
function renameTag($uId, $oldName, $newName) {
+ $tagservice =& ServiceFactory::getServiceInstance('TagService');
+ $newName = $tagservice->normalize($newName);
+
$query = 'UPDATE `'. $this->getTableName() .'`';
$query.= ' SET tag1="'.$newName.'"';
$query.= ' WHERE tag1="'.$oldName.'"';