From 2fab6a02aadb5cb8f5e0ee90fcfc8acd6872d999 Mon Sep 17 00:00:00 2001 From: Carsten Schmitz Date: Wed, 20 Feb 2013 20:21:17 +0100 Subject: [PATCH] Fixed issue #7316: Unable to import .lss file --- application/helpers/common_helper.php | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/application/helpers/common_helper.php b/application/helpers/common_helper.php index 9eca5a6c3a7..62d9056e063 100644 --- a/application/helpers/common_helper.php +++ b/application/helpers/common_helper.php @@ -6267,22 +6267,17 @@ function translateInsertansTags($newsid,$oldsid,$fieldnames) $description=preg_replace('/'.$pattern.'/', $replacement, $description); } - if (strcmp($description,$qentry['description']) !=0 || - strcmp($gpname,$qentry['group_name']) !=0) + if (strcmp($description,$qentry['description']) !=0 || strcmp($gpname,$qentry['group_name']) !=0) { // Update Fields - - $data = array( - 'description' => $description, - 'group_name' => $gpname - ); - $where = array( 'gid' => $gid, 'language' => $language ); - - Groups::model()->update($data,$where); + $oGroup = Groups::model()->findByAttributes($where); + $oGroup->description= $description; + $oGroup->group_name= $gpname; + $oGroup->save(); } // Enf if modified } // end while qentry