Browse files

Few small bug fixes

  • Loading branch information...
1 parent 4a47442 commit 4a9ff9bea2033de1db0d5715cba6af8ee99ad5d2 @voxpelli committed Apr 17, 2009
Showing with 3 additions and 3 deletions.
  1. +1 −1 og_autocomplete/og_autocomplete.module
  2. +2 −2 og_fine_access/og_fine_access.module
View
2 og_autocomplete/og_autocomplete.module
@@ -226,7 +226,7 @@ function og_autocomplete_autocomplete($type = '', $string = '') {
if (user_access('administer nodes')) {
list($types, $in) = og_get_sql_args();
- $sql = "SELECT n.title, n.nid FROM {node} n WHERE n.type $in AND n.status = 1 AND n.title LIKE '%%%s%%' GROUP BY n.nid ORDER BY n.title ASC";
+ $sql = "SELECT n.nid, n.title FROM {node} n WHERE n.type $in AND n.status = 1 AND n.title LIKE '%%%s%%' GROUP BY n.nid ORDER BY n.title ASC";
$types[] = $string;
$result = db_query_range(db_rewrite_sql($sql), $types, 0, 25);
View
4 og_fine_access/og_fine_access.module
@@ -82,8 +82,8 @@ function og_fine_access_nodeapi(&$node, $op) {
if ($op === 'load') {
$node->og_fine_access_posts = _og_fine_access_get_privacy($node->nid);
}
- else if (!$is_group && $op === 'prepare' && $node->og_fine_access_posts !== _og_fine_access_calculate_privacy($node->og_groups)) {
- if ($node->og_fine_access_posts === OG_FINE_ACCESS_PRIVATE_POSTS) {
+ else if (!$is_group && $op === 'prepare' && $node->og_fine_access_posts != _og_fine_access_calculate_privacy($node->og_groups)) {
+ if ($node->og_fine_access_posts == OG_FINE_ACCESS_PRIVATE_POSTS) {
drupal_set_message(t('One or more of this post\'s groups has become public - your post will also become public if you save it.'), 'warning');
}
else {

0 comments on commit 4a9ff9b

Please sign in to comment.