Forums | Mahara Community
Changing View Feedback default from Public to Private
07 September 2010, 5:06 PM
Can anyone quickly point me to the code I need to change to alter the default (checkbox) to make the default Feedback setting on views private, not public? I want to uncheck the "Public" option, by default.
I'm sure it's probably easy... it's just become a bit of needle in the haystack for me. Many thanks.
07 September 2010, 8:43 PM
In 1.3, it's in artefact/comment/lib.php, in the add_comment_form function. Find the line that says
'defaultvalue' => !$defaultprivate,
and change it to
'defaultvalue' => false,
It's different in 1.2: the function is add_feedback_form and it's in lib/view.php.
08 September 2010, 12:37 AM
Thank you Richard. Works great.