
Adding homepage topic to a basket creates topic, but doesn't designated it as homepage, when topic description contains javascript or a form
Reported by Walter McGinnis | August 4th, 2010 @ 10:39 AM | in 1.4
This line in app/models/topic.rb needs to have a callback added to set do_not_sanitize and do_not_moderate to true:
a topic may be the designated index page for it's basket
belongs_to :index_for_basket, :class_name => 'Basket', :foreign_key => 'index_for_basket_id'
See the Association Callbacks section in http://api.rubyonrails.org/classes/ActiveRecord/Associations/ClassM... for details on before_add callback. Hopefully that will do the trick.
Comments and changes to this ticket
-
Walter McGinnis November 23rd, 2011 @ 01:42 PM
This also happens in the following case:
- you create a basket where private is the default value for new items
- you follow the "create basket homepage topic" link from new basket's homepage
- you create a private version of the homepage topic first
-
Walter McGinnis November 28th, 2011 @ 03:46 PM
- Milestone changed from 1.3 to 1.4
- Milestone order changed from 10 to 0
Not a showstopper, moving to 1.4.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
Kete was developed by Horowhenua Library Trust and Katipo Communications Ltd. to build a digital library of Horowhenua material.