<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
  <title>aC forum: Changing default value of Default Visibility on New Project form</title>
  <link>http://www.activecollab.com/forums/topic/4705/</link>
  <description>Recent posts on topic: Changing default value of Default Visibility on New Project form</description>
  <dc:language>en-us</dc:language>
  <pubDate>Wed, 23 May 2012 20:37:46 CDT</pubDate>
  
  <item>
    <link>http://www.activecollab.com/forums/post/21084/#post21084</link>
    <guid>http://www.activecollab.com/forums/post/21084/#post21084</guid>
    <title>Post #3 by Frederik (Dwarf)</title>
    <dc:creator>Frederik (Dwarf)</dc:creator>
    <description><![CDATA[<p>Thank you once again Ilija<br />
<br />
It's always nice to get help from a developer, even with hacks :)</p>]]></description>
    <pubDate>Wed, 24 Jun 2009 07:54:20 CDT</pubDate>
  </item>
  <item>
    <link>http://www.activecollab.com/forums/post/21083/#post21083</link>
    <guid>http://www.activecollab.com/forums/post/21083/#post21083</guid>
    <title>Post #2 by Ilija Studen</title>
    <dc:creator>Ilija Studen</dc:creator>
    <description><![CDATA[<p>Default value of Default Visibility field is controlled with following piece of code:<br />
<br />
<pre name="code" class="brush: php">if(!is_array($project_data)) {
  $project_data = array(
    'leader_id' =&gt; $this-&gt;logged_user-&gt;getId(),
    'default_visibility' =&gt; VISIBILITY_PRIVATE,
  );
} // if</pre><br />
<br />
in ProjectController (/activecollab/application/modules/system/controllers). If you wish to have Normal visibility selected by default, change it to:<br />
<br />
<pre name="code" class="brush: php">if(!is_array($project_data)) {
  $project_data = array(
    'leader_id' =&gt; $this-&gt;logged_user-&gt;getId(),
    'default_visibility' =&gt; VISIBILITY_NORMAL,
  );
} // if</pre><br />
<br />
PS: This is a hack and you know the story - hacks are not recommended because you need to manually re-apply them each time you upgrade to the latest version.</p>]]></description>
    <pubDate>Wed, 24 Jun 2009 07:28:58 CDT</pubDate>
  </item>
  <item>
    <link>http://www.activecollab.com/forums/post/21047/#post21047</link>
    <guid>http://www.activecollab.com/forums/post/21047/#post21047</guid>
    <title>Post #1 by Frederik (Dwarf)</title>
    <dc:creator>Frederik (Dwarf)</dc:creator>
    <description><![CDATA[<p><div class="postQuote"><blockquote><div class="quoteAuthor">Ilija Studen:</div>You set default visibility when you create new projects. By default, Default Visibility is set to Private on New Project forms.</blockquote></div><br />
<br />
Hey Ilija,<br />
<br />
I've tried to figure out where to change the Defaullt Visibility when creating a new project. The _project_form.tpl doesn't set it and the select_visibility helper function doesn't seem to give me any hints either, as the checked param isn't set for either of the 2 radio buttons. Have I missed something and if so, where should I look for changing this?</p>]]></description>
    <pubDate>Mon, 22 Jun 2009 04:01:09 CDT</pubDate>
  </item>
</channel>
</rss>
