Forums | Mahara Community

Support /
Changing View Feedback default from Public to Private


anonymous profile picture
Account deleted
Posts: 52

07 September 2010, 17:06

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.

anonymous profile picture
Account deleted
Posts: 808

07 September 2010, 20:43

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.

anonymous profile picture
Account deleted
Posts: 52

08 September 2010, 0:37

Thank you Richard.  Works great.

3 results