projects
/
Pman.Core
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix #5773 - Product edit changes
[Pman.Core]
/
DataObjects
/
I18n.php
diff --git
a/DataObjects/I18n.php
b/DataObjects/I18n.php
index
3661433
..
971d0d6
100644
(file)
--- a/
DataObjects/I18n.php
+++ b/
DataObjects/I18n.php
@@
-170,7
+170,19
@@
class Pman_Core_DataObjects_I18n extends DB_DataObject
geoip_city.country = i18n.lkey
) AS no_of_city
");
-
+ }
+
+ if(!empty($q['_hide_unused'])) {
+ $this->whereAdd("
+ (
+ SELECT
+ COUNT(geoip_division.id)
+ FROM
+ geoip_division
+ WHERE
+ geoip_division.country = i18n.lkey
+ ) > 0
+ ");
}
}