#289 new
Walter McGinnis

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

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.

New-ticket Create new ticket

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.

People watching this ticket