<?xml version="1.0" encoding="UTF-8"?> 
<?xml-stylesheet href="https://dev.horde.org/themes/horde//default/feed-rss.xsl" type="text/xsl"?> 
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 
 <channel> 
  <title>can&#039;t add entries when only one source is editable</title> 
  <pubDate>Fri, 10 Apr 2026 18:27:19 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/3588</link> 
  <atom:link rel="self" type="application/rss+xml" title="can&#039;t add entries when only one source is editable" href="https://bugs.horde.org/ticket/3588/rss" /> 
  <description>can&#039;t add entries when only one source is editable</description> 
 
   
   
  <item> 
   <title>in lib/base.php, the following code has a small bug:



    </title> 
   <description>in lib/base.php, the following code has a small bug:



    // Hide the list of addressbooks if there is only one available. 

    $add_source_options = &#039;&#039;;

    $addSources = Turba::getAddressBooks(PERMS_EDIT);

    if (count($addSources) &gt; 1) {



this conditional expression is true only if you have at least 2 editable sources, which neither agrees with the comment nor the logic. e.g. in the case where you want to, say, copy an entry from an readonly source to a readwrite source, this condition fails. 



        if (count($addSources) &gt; 0) {



is the appropriate fix.

</description> 
   <pubDate>Thu, 09 Mar 2006 01:55:45 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/3588#t17429</link> 
  </item> 
   
  <item> 
   <title>Sure it agrees with the comment - it says, hide if there&#039;s o</title> 
   <description>Sure it agrees with the comment - it says, hide if there&#039;s only one (editable) share. I see where it falls down, though, if you&#039;re browsing a readonly source and there&#039;s one writable source. If you only have one source, and it&#039;s writable, your patch would show the &quot;copy to&quot; dropdown - which doesn&#039;t make sense.</description> 
   <pubDate>Fri, 10 Mar 2006 23:36:51 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/3588#t17566</link> 
  </item> 
   
  <item> 
   <title>http://lists.horde.org/archives/cvs/Week-of-Mon-20060306/055</title> 
   <description>http://lists.horde.org/archives/cvs/Week-of-Mon-20060306/055704.html should take care of this for HEAD, and I&#039;ll merge it to FW_3 for Turba 2.1.1 shortly.</description> 
   <pubDate>Fri, 10 Mar 2006 23:49:48 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/3588#t17568</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
