Skip to content
This repository has been archived by the owner on Oct 22, 2020. It is now read-only.

Commit

Permalink
fiexed OES-207
Browse files Browse the repository at this point in the history
  • Loading branch information
Hmayak Tigranyan committed Jul 25, 2013
1 parent 8dce5d1 commit 01dec0b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
11 changes: 5 additions & 6 deletions data/Browse.php
Original file line number Diff line number Diff line change
Expand Up @@ -1033,14 +1033,13 @@ public static function getHuriTermsTranslations($fieldName, $langorder = null) {
$res = $browse->ExecuteQuery($sql);
$results = array();
foreach ($res as $record) {
if (isset($results[$record["vocab_number"]])) {
$results[$record["vocab_number"]]["label_" . $record["locale"]] = $record["msgstr"];
} else {
if (!isset($results[$record["vocab_number"]])) {
$results[$record["vocab_number"]] = $record;
if ($record["locale"] != "en") {
$results[$record["vocab_number"]]["label_" . $record["locale"]] = $record["msgstr"];
}
}
if ($record["locale"] != "en") {
$results[$record["vocab_number"]]["label_" . $record["locale"]] = $record["msgstr"];
}

}

return $results;
Expand Down
2 changes: 1 addition & 1 deletion mod/admin/adminModule.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ public function act_mt_customization() {

if (isset($this->mt_select)) {
//handle delete requests
if(isset($_POST['bulkaction']) && !$_POST['vocab_number_list']){
if($_POST['bulkaction'] && !$_POST['vocab_number_list']){
shnMessageQueue::addError(_t('Please select items to performa action'));

}
Expand Down

0 comments on commit 01dec0b

Please sign in to comment.