diff --git a/app/controllers/my_profile/favorite_enterprises_controller.rb b/app/controllers/my_profile/favorite_enterprises_controller.rb index a866233..b6de4a4 100644 --- a/app/controllers/my_profile/favorite_enterprises_controller.rb +++ b/app/controllers/my_profile/favorite_enterprises_controller.rb @@ -1,9 +1,9 @@ class FavoriteEnterprisesController < MyProfileController - -# protect 'manage_favorite_enteprises', :profile + +# protect 'manage_favorite_enterprises', :profile requires_profile_class Person - + def index @favorite_enterprises = profile.favorite_enterprises end @@ -12,7 +12,7 @@ class FavoriteEnterprisesController < MyProfileController @favorite_enterprise = Enterprise.find(params[:id]) if request.post? && params[:confirmation] profile.favorite_enterprises << @favorite_enterprise - redirect_to :action => 'index' + redirect_to :action => 'index' end end diff --git a/doc/noosfero/navigation/searching-enterprises.textile b/doc/noosfero/navigation/searching-enterprises.textile index 6b08cd6..9198598 100644 --- a/doc/noosfero/navigation/searching-enterprises.textile +++ b/doc/noosfero/navigation/searching-enterprises.textile @@ -14,7 +14,7 @@ p. Find on top of page the term "Enterprises" and click on it: h2(#description). Description # Fill in the search field with what you want to look for and click on "Search" !=/images/doc/enterprises-search-field.en.png(Enterprises search field)! -# Then you will see the search results. To see more results, click on the pages below the search results. !=/images/doc/enterprises-search-results-with-example.en.png(Enteprises search results with example)! +# Then you will see the search results. To see more results, click on the pages below the search results. !=/images/doc/enterprises-search-results-with-example.en.png(Enterprises search results with example)! # Clicking on one of the search results, you will be redirected to the homepage of choosen enterprise. h3. More options diff --git a/lib/notify_activity_to_profiles_job.rb b/lib/notify_activity_to_profiles_job.rb index c909f41..b9a5a80 100644 --- a/lib/notify_activity_to_profiles_job.rb +++ b/lib/notify_activity_to_profiles_job.rb @@ -25,7 +25,7 @@ class NotifyActivityToProfilesJob < Struct.new(:tracked_action_id) if tracked_action.user.is_a? Organization ActionTrackerNotification.connection.execute "insert into action_tracker_notifications(profile_id, action_tracker_id) " + "select distinct accessor_id, #{tracked_action.id} from role_assignments where resource_id = #{tracked_action.user.id} and resource_type='Profile' " + - if tracked_action.user.is_a? Enterprise then "union select distinct person_id, #{tracked_action.id} from favorite_enteprises_people where enterprise_id = #{tracked_action.user.id}" else "" end + if tracked_action.user.is_a? Enterprise then "union select distinct person_id, #{tracked_action.id} from favorite_enterprise_people where enterprise_id = #{tracked_action.user.id}" else "" end end if target.is_a?(Community) diff --git a/po/noosfero-doc.pot b/po/noosfero-doc.pot index 02af681..b06fe8d 100644 --- a/po/noosfero-doc.pot +++ b/po/noosfero-doc.pot @@ -2762,7 +2762,7 @@ msgstr "" #. type: Attribute 'alt' of: